DonutChartData class

Data for the DonutChart.

Constructors

DonutChartData({required List<double> data, int? selectedIndex, ValueChanged<int>? onSelectionChanged, ValueChanged<double>? onInscribedInCircleSizeChanged})
Constructs an instance of DonutChartData.
const

Properties

data List<double>
List of the section values.
final
hashCode int
The hash code for this object.
no setteroverride
onInscribedInCircleSizeChanged ValueChanged<double>?
Callbacks that reports that size of the square inscribed in circle has changed.
final
onSelectionChanged ValueChanged<int>?
Callbacks that reports that selected section index has changed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex int?
Index of the selected section.
final
total double
Gets total value of data.
no setter

Methods

copyWith({bool allowNullSelectedIndex = false, List<double>? data, int? selectedIndex, ValueChanged<int>? onSelectionChanged, ValueChanged<double>? onInscribedInCircleSizeChanged}) DonutChartData
Creates a copy of the current object with new values specified in arguments.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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