maybeWhen<TResult extends Object?> method

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

Implementation

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