mapOrNull<TResult extends Object?> method

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

Implementation

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