Block class abstract

Represents blocks of statements of Dart code.

Implemented types

Constructors

Block([void updates(BlockBuilder)])
factory
Block.of(Iterable<Code> statements)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statements → BuiltList<Code>
no setter

Methods

accept<R>(covariant CodeVisitor<R> visitor, [R? context]) → R
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(BlockBuilder)) Block
Rebuilds the instance.
inherited
toBuilder() BlockBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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