FanPiece class Models

Fan Piece is the smallest unit on the color picker wheel, it looks like a piece of a donut

Constructors

FanPiece({required double angleStart, required double swipe, required double radiusEnd, required double radiusStart, required Color color, required Offset center})
Fan Piece is the smallest unit on the color picker wheel, it looks like a piece of a donut Fan piece is used by FanPieceWidget to hold its data. FanPiece model is responsible to convert spherical coordinates to cartesian coordinates

Properties

angleStart double
The follow four properties defines the shape of a piece of a donut starting radians of the fan piece.
final
center Offset
center of the overall circle
final
color Color
color of this piece
final
hashCode int
The hash code for this object.
no setterinherited
innerArcEnd Offset
when drawing a donut in one stroke, starting from the outer perimeter, this is the third point, it lies on the inner perimeter of the donut
no setter
innerArcStart Offset
when drawing a donut in one stroke, starting from the outer perimeter, this is the final point, it lies on the inner perimeter of the donut
no setter
outerArcEnd Offset
when drawing a donut in one stroke, starting from the outer perimeter, this is the second point
no setter
outerArcStart Offset
when drawing a donut in one stroke, starting from the outer perimeter, this is the starting point
no setter
path Path
this is the path which encloses the fan piece the path is !closed! thus it can be filled when rendering
no setter
radiusEnd double
outer radius of this piece.
final
radiusStart double
inner radius of this piece.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
swipe double
how much radians this piece is going to cover.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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