mapOrNull<TResult extends Object?> method Null safety

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

Implementation

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