maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult declaration(
    1. DeclarationExpectation value
    )?,
  2. TResult expression(
    1. ExpressionExpectation value
    )?,
  3. TResult oneOf(
    1. OneOfExpectation value
    )?,
  4. TResult token(
    1. TokenExpectation value
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(DeclarationExpectation value)? declaration,
  TResult Function(ExpressionExpectation value)? expression,
  TResult Function(OneOfExpectation value)? oneOf,
  TResult Function(TokenExpectation value)? token,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;