maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult widget(
    1. WidgetSpan value
    )?,
  2. TResult text(
    1. TextSpan value
    )?,
  3. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(WidgetSpan value)? widget,
      TResult Function(TextSpan value)? text,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;