ScatterDelegate class abstract
A delegate that controls the layout of a Scatter.
Constructors
- ScatterDelegate({double? ratio})
- Creates the delegate used by RenderScatter to place its children.
Properties
- availableSize → Size?
-
The available size to place children.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- ratio → double?
-
The ratio used to place the children.
final
- ratioX → double?
-
The ratio used for the x-axis points.
no setter
- ratioY → double?
-
The ratio used for the y-axis points.
no setter
- 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.
-
getChildOffsetForIteration(
int iteration, ScatterContext context) → Offset - Returns the child offset for the given iteration.
-
getPositionForIteration(
int iteration, ScatterContext context) → Offset - Returns an offset for the specified iteration.
-
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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited