mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  1. {TResult? item(
    1. PopupMenuItem value
    )?,
  2. TResult? divider(
    1. PopupMenuDivider value
    )?,
  3. TResult? checked(
    1. CheckedPopupMenuItem value
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(PopupMenuItem value)? item,
  TResult? Function(PopupMenuDivider value)? divider,
  TResult? Function(CheckedPopupMenuItem value)? checked,
}) =>
    throw _privateConstructorUsedError;