WheelFrameGeometry class

Where things are on a wheel, for painting a WheelFrame.

All values are in pixels and follow the wheel's size, so a frame painted with them scales with the wheel.

Constructors

WheelFrameGeometry(Size size, double inset)
Creates a WheelFrameGeometry for a wheel of size whose slices are inset by inset (a fraction of the size, see SpinnerWheel.wheelInset).
factory

Properties

center → Offset
The center of the wheel.
final
hashCode → int
The hash code for this object.
no setterinherited
outer → double
The outer edge frames should stay inside, leaving a little room for a drop shadow.
no setter
radius → double
Half of the wheel's size: from the center to the edge of the area.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
The size of the area the wheel is painted in.
final
sliceRadius → double
From the center to the outer edge of the slices.
final

Methods

circle(double r) → Rect
The bounding square of a circle around the center.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointAt(double angle, double distance) → Offset
The point at distance from the center in the direction angle (radians, clockwise from 3 o'clock).
ring(double innerRadius, double outerRadius) → Path
A ring between two radii, for filling.
toString() → String
A string representation of this object.
inherited

Operators

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