whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult game(
    1. Event event
    )?,
  2. TResult general(
    1. GenericEvent event
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult Function(Event event)? game,
  TResult Function(GenericEvent event)? general,
}) =>
    throw _privateConstructorUsedError;