when<TResult extends Object?> method

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

Implementation

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