Statement class

Implementers
Available Extensions
Annotations
  • @Freezed(unionKey: 'type')

Constructors

Statement.expression({required SourceInfo sourceInfo, required bool optional, @ExpConverter() required Expression expression})
const
factory
Statement.fromJson(Map<String, dynamic> json)
factory
Statement.sIf({required SourceInfo sourceInfo, @ExpConverter() required Expression condition, required List<Statement> statements})
const
factory
Statement.sWhile({required SourceInfo sourceInfo, @ExpConverter() required Expression condition, required List<Statement> statements})
const
factory

Properties

copyWith → $StatementCopyWith<Statement>
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
sourceInfo SourceInfo
no setterinherited

Methods

map<TResult extends Object?>({required TResult expression(ExpressionStatement value), required TResult sIf(IfStatement value), required TResult sWhile(WhileStatement value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult expression(ExpressionStatement value)?, TResult sIf(IfStatement value)?, TResult sWhile(WhileStatement value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult expression(ExpressionStatement value)?, TResult sIf(IfStatement value)?, TResult sWhile(WhileStatement value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult expression(SourceInfo sourceInfo, bool optional, Expression expression)?, TResult sIf(SourceInfo sourceInfo, Expression condition, List<Statement> statements)?, TResult sWhile(SourceInfo sourceInfo, Expression condition, List<Statement> statements)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult expression(SourceInfo sourceInfo, bool optional, Expression expression), required TResult sIf(SourceInfo sourceInfo, Expression condition, List<Statement> statements), required TResult sWhile(SourceInfo sourceInfo, Expression condition, List<Statement> statements)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult expression(SourceInfo sourceInfo, bool optional, Expression expression)?, TResult sIf(SourceInfo sourceInfo, Expression condition, List<Statement> statements)?, TResult sWhile(SourceInfo sourceInfo, Expression condition, List<Statement> statements)?}) → TResult?
inherited

Operators

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