whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? changePage(
    1. MapPageType pageType
    )?,
  2. TResult? setSenderAndReceiver(
    1. MapUserModel user,
    2. bool sender
    )?,
  3. TResult? changeActiveButton(
    1. bool active
    )?,
  4. TResult? setMarker(
    1. MapObject marker
    )?,
  5. TResult? removeMarker(
    1. dynamic markerId
    )?,
  6. TResult? cancelOrder(
    1. BuildContext context,
    2. BuildContext bigContext
    )?,
  7. TResult? clear()?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(MapPageType pageType)? changePage,
  TResult? Function(MapUserModel user, bool sender)? setSenderAndReceiver,
  TResult? Function(bool active)? changeActiveButton,
  TResult? Function(MapObject<dynamic> marker)? setMarker,
  TResult? Function(dynamic markerId)? removeMarker,
  TResult? Function(BuildContext context, BuildContext bigContext)?
      cancelOrder,
  TResult? Function()? clear,
}) =>
    throw _privateConstructorUsedError;