maybeMap<TResult extends Object?> method Null safety

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

    Implementation

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