when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult game(
    1. Game<Event> game
    ),
  2. required TResult error(
    1. String message,
    2. String person
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(@GameConverter() G game) game,
  required TResult Function(String message, String person) error,
}) =>
    throw _privateConstructorUsedError;