ExpectationType class sealed

Implementers
Annotations
  • @freezed

Constructors

ExpectationType.oneOf({required List<ExpectationType> expectations, String? description})
const
factory
ExpectationType.statement({required Statement statement, String? description})
const
factory
ExpectationType.token({required TokenType token, String? description})
const
factory

Properties

copyWith → $ExpectationTypeCopyWith<ExpectationType>
Create a copy of ExpectationType with the given fields replaced by the non-null parameter values.
no setterinherited
description String?
no setterinherited
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 oneOf(OneOfExpectation value), required TResult statement(StatementExpectation value), required TResult token(TokenExpectation value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? oneOf(OneOfExpectation value)?, TResult? statement(StatementExpectation value)?, TResult? token(TokenExpectation value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult oneOf(OneOfExpectation value)?, TResult statement(StatementExpectation value)?, TResult token(TokenExpectation value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult oneOf(List<ExpectationType> expectations, String? description)?, TResult statement(Statement statement, String? description)?, 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.
override
when<TResult extends Object?>({required TResult oneOf(List<ExpectationType> expectations, String? description), required TResult statement(Statement statement, String? description), required TResult token(TokenType token, String? description)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? oneOf(List<ExpectationType> expectations, String? description)?, TResult? statement(Statement statement, String? description)?, TResult? token(TokenType token, String? description)?}) → TResult?
inherited

Operators

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