maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult all(
    1. MaterialStatePropertyAll value
    )?,
  2. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(MaterialStatePropertyAll value)? all,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;