when<TResult extends Object?> method

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

Implementation

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