ArchimedeanSpiralScatterDelegate class
A ScatterDelegate that places children in an archimedean spiral. See: https://en.wikipedia.org/wiki/Archimedean_spiral.
- Inheritance
-
- Object
- ScatterDelegate
- SpiralScatterDelegate
- ArchimedeanSpiralScatterDelegate
- Implementers
Constructors
- ArchimedeanSpiralScatterDelegate({double? ratio, double a = 10.0, double b = 10.0, double step = 0.01, double rotation = 0.0})
- Creates an archimedean spiral ScatterDelegate.
Properties
- a → double
-
The initial radius of the spiral.
final
- availableSize → Size?
-
The available size to place children.
no setterinherited
- b → double
-
The distance between successive turns of the spiral.
final
- 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
-
computeRadius(
double angle) → double -
All spirals are a function of the angle: r=f(θ).
override
-
getChildOffset(
Offset position, ScatterContext context) → Offset -
Returns the child offset for the given position.
inherited
-
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.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRelayout(
covariant ArchimedeanSpiralScatterDelegate 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.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited