FanSlice class Models
FanSlice contains a list of FanPiece Slice of a donut It also knows some meta info like angle start, swipe, innerRadius, outerRadius etc.
Constructors
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
-
no setter
-
fanPieceList
→ List<
FanPiece> -
getter of _fanPieceList, private to protect it from alteration
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
getter of height, height is private to protect it from alteration from outside
no setter
- innerRadius → double
-
inner radius of this piece.
final
- outerRadius → double
-
current outer radius of this slice
no setter
- pieceHeight → double
-
Fan Piece height
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startRadiusOfLastPiece → double
-
getter, for testing
no setter
- swipe → double
-
how much radians this piece is going to cover.
final
Methods
-
addFanPiece(
Color color) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCenter(
Offset newCenter) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited