Block class Null safety
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.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
statements
→ BuiltList<
Code> -
read-only
Methods
-
accept<
R> (covariant CodeVisitor< R> visitor, [R? context]) → R -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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