maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. {TResult none(
      )?,
    1. TResult underline(
        )?,
      1. TResult overline(
          )?,
        1. TResult lineThrough(
            )?,
          1. required TResult orElse(
              )}
            )
            @optionalTypeArgs, inherited

            Implementation

            @optionalTypeArgs
            TResult maybeWhen<TResult extends Object?>({
              TResult Function()? none,
              TResult Function()? underline,
              TResult Function()? overline,
              TResult Function()? lineThrough,
              required TResult orElse(),
            }) =>
                throw _privateConstructorUsedError;