maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult declaration(
    1. Declaration? declaration
    )?,
  2. TResult expression(
    1. Expression? expression
    )?,
  3. TResult oneOf(
    1. List<ExpectationType> expectations
    )?,
  4. TResult token(
    1. TokenType token,
    2. String? description
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(Declaration? declaration)? declaration,
  TResult Function(Expression? expression)? expression,
  TResult Function(List<ExpectationType> expectations)? oneOf,
  TResult Function(TokenType token, String? description)? token,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;