Fluent2PieChart class

Parts of a whole as a donut: the data hues in fixed order with 2 gaps between them, past five parts the rest folded into a neutral "Other", a legend of every part with its value beside it. The pointer on a part sets the others back and says it in the hole. Read as label, then each part.

Fluent2PieChart(label: 'Storage', slices: const [Fluent2PieSlice('Documents', 40), Fluent2PieSlice('Photos', 25)])
Inheritance

Constructors

Fluent2PieChart({Key? key, required List<Fluent2PieSlice> slices, String? label, double size = 160, double thickness = 24, Widget? center, Color? ground})
A donut of slices.
const

Properties

center → Widget?
What stands in the hole when nothing is hovered.
final
ground → Color?
The colour it stands on; null is the surface.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
What it shows.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → double
The donut's side.
final
slices → List<Fluent2PieSlice>
The parts, largest first reads best.
final
thickness → double
The ring's thickness.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<Fluent2PieChart>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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