OneOfExpectation class abstract

Inheritance

Constructors

OneOfExpectation({required List<ExpectationType> expectations})
const
factory

Properties

copyWith → _$$OneOfExpectationImplCopyWith<_$OneOfExpectationImpl>
Create a copy of ExpectationType with the given fields replaced by the non-null parameter values.
no setter
expectations List<ExpectationType>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult declaration(DeclarationExpectation value), required TResult expression(ExpressionExpectation value), required TResult oneOf(OneOfExpectation value), required TResult token(TokenExpectation value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? declaration(DeclarationExpectation value)?, TResult? expression(ExpressionExpectation value)?, TResult? oneOf(OneOfExpectation value)?, TResult? token(TokenExpectation value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult declaration(DeclarationExpectation value)?, TResult expression(ExpressionExpectation value)?, TResult oneOf(OneOfExpectation value)?, TResult token(TokenExpectation value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult declaration(Declaration? declaration)?, TResult expression(Expression? expression)?, TResult oneOf(List<ExpectationType> expectations)?, TResult token(TokenType token, String? description)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult declaration(Declaration? declaration), required TResult expression(Expression? expression), required TResult oneOf(List<ExpectationType> expectations), required TResult token(TokenType token, String? description)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? declaration(Declaration? declaration)?, TResult? expression(Expression? expression)?, TResult? oneOf(List<ExpectationType> expectations)?, TResult? token(TokenType token, String? description)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited