map<TResult extends Object?> method

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

Implementation

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