whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;