WallBuilder class Null safety

Defines how the wall will be built If you want to define your own algorithm, you will have to inherit from this abstract class, and implements the method WallBuilder.computeStonePositions.

Constructors

WallBuilder()
Default constructor.
WallBuilder.standard()
Default WallBuilder implementation
factory

Properties

direction Axis
Define wall build direction, like ListView.direction input parameter.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
mainAxisSeparations int
Define how many layers of the main axis the wall possess.
read-only
reverse bool
Define whether the wall must be displayed in reverse, like ListView.reverse input parameter.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

assertNoDrawOutside(Map<Stone, StoneStartPosition> stonesPositions) → void
assertNoOverlap(Map<Stone, StoneStartPosition> stonesPositions) → void
build({required int mainAxisSeparations, required bool reverse, required Axis direction, required List<Stone> stones}) WallBlueprint
Build the wall with scrollview parameters
computeSize(Map<Stone, StoneStartPosition> stonesPositions) WallSize
Compute the wall size from the stones positions.
computeStonePositions(List<Stone> stones) Map<Stone, StoneStartPosition>
Let you compute stone position for each stone. StonePositions must not overlap (stack not allowed), and not been drawn outside the wall (depending on WallBuilder.mainAxisSeparations).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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