AlignScatterDelegate class
A ScatterDelegate that aligns a child with its predecessor.
- Inheritance
-
- Object
- ScatterDelegate
- AlignScatterDelegate
Constructors
- AlignScatterDelegate({Alignment alignment = Alignment.bottomRight})
- Creates a delegate where a child is aligned with its predecessor.
Properties
- alignment → Alignment
-
How to align a child with the previous one.
final
- availableSize → Size?
-
The available size to place children.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- ratio → double?
-
The ratio used to place the children.
finalinherited
- ratioX → double?
-
The ratio used for the x-axis points.
no setterinherited
- ratioY → double?
-
The ratio used for the y-axis points.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getChildOffset(
Offset position, ScatterContext context) → Offset -
Returns the child offset for the given position.
override
-
getChildOffsetForIteration(
int iteration, ScatterContext context) → Offset -
Returns the child offset for the given iteration.
inherited
-
getPositionForIteration(
int iteration, ScatterContext context) → Offset -
Returns an offset for the specified iteration.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRelayout(
covariant ScatterDelegate oldDelegate) → bool -
Override this method to return true when the children need to be laid out.
This should compare the fields of the current delegate and the given
oldDelegate and return true if the fields are such that the layout would
be different.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited