maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. TResult $default(
    1. PreferredSize value
    )?,
  2. {TResult appBar(
    1. AppBar value
    )?,
  3. TResult tabBar(
    1. TabBar value
    )?,
  4. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>(
      TResult Function(PreferredSize value)? $default, {
      TResult Function(AppBar value)? appBar,
      TResult Function(TabBar value)? tabBar,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;