ExpressionStatement class abstract

Implemented types
Available Extensions

Constructors

ExpressionStatement({required SourceInfo sourceInfo, required bool optional, @ExpConverter() required Expression expression})
const
factory
ExpressionStatement.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → _$$ExpressionStatementCopyWith<_$ExpressionStatement>
no setter
expression Expression
no setter
hashCode int
The hash code for this object.
no setterinherited
optional bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceInfo SourceInfo
no setter

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