BarSeries class
This class defines the Data Set to be provided to the BarChart and the Global Styling options.
The BarSeries is mandatory to be provided to the BarChart widget.
See Also: CartesianSeries
- Inheritance
-
- Object
- CartesianSeries<
BarInteractionEvents> - BarSeries
Constructors
-
BarSeries.new({BarDataStyle? seriesStyle, required List<
BarGroup> barData, BarInteractionEvents interactionEvents = const BarInteractionEvents(isEnabled: false)}) - This class defines the Data Set to be provided to the BarChart, the Global Styling options and any interaction events that could be performed on the following Data.
- BarSeries.zero()
-
Constructs a Factory Instance of BarSeries without any Data.
factory
Properties
-
barData
→ List<
BarGroup> -
The DataSet for our BarChart. It is Structured as a BarGroup
that provides the X-Value and can contain a
single or multiple group of bars.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interactionEvents → BarInteractionEvents
-
finalinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seriesStyle → BarDataStyle?
-
Sets uniform styling for All the Bars in this BarSeries.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
maybeWhen<
T> ({T onBarSeries(BarSeries series)?, required T orElse()}) → T -
Checks the Subclass Type and returns the casted instance
to the matched callback.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
T> ({required T onBarSeries(BarSeries series)}) → T -
Checks the Subclass Type and returns the casted instance
to the matched callback. All callbacks must be provided.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited