SeriesLegend<D> class
Series legend behavior for charts.
- Inheritance
-
- Object
- ChartBehavior<
D> - SeriesLegend
- Annotations
Constructors
-
SeriesLegend({BehaviorPosition? position, OutsideJustification? outsideJustification, InsideJustification? insideJustification, bool? horizontalFirst, int? desiredMaxRows, int? desiredMaxColumns, EdgeInsets? cellPadding, List<
String> ? defaultHiddenSeries, bool? showMeasures, LegendDefaultMeasure? legendDefaultMeasure, MeasureFormatter? measureFormatter, MeasureFormatter? secondaryMeasureFormatter, TextStyleSpec? entryTextStyle}) -
Create a new tabular layout legend.
factory
-
SeriesLegend.customLayout(LegendContentBuilder contentBuilder, {BehaviorPosition? position, OutsideJustification? outsideJustification, InsideJustification? insideJustification, List<
String> ? defaultHiddenSeries, bool? showMeasures, LegendDefaultMeasure? legendDefaultMeasure, MeasureFormatter? measureFormatter, MeasureFormatter? secondaryMeasureFormatter, TextStyleSpec? entryTextStyle}) -
Create a legend with custom layout.
factory
Properties
- contentBuilder → LegendContentBuilder
-
Builder for creating custom legend content.
final
-
defaultHiddenSeries
→ List<
String> ? -
final
-
desiredGestures
→ Set<
GestureType> -
final
- entryTextStyle → TextStyleSpec?
-
Styles for legend entry label text.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- insideJustification → InsideJustification
-
final
- legendDefaultMeasure → LegendDefaultMeasure?
-
Option to show measures when selection is null.
final
- measureFormatter → MeasureFormatter?
-
Formatter for measure value(s) if the measures are shown on the legend.
final
- outsideJustification → OutsideJustification
-
Justification of the legend relative to the chart
final
- position → BehaviorPosition
-
Position of the legend relative to the chart.
final
- role → String
-
All Legend behaviors get the same role ID, because you should only have
one legend on a chart.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryMeasureFormatter → MeasureFormatter?
-
Formatter for secondary measure value(s) if the measures are shown on the
legend and the series uses the secondary axis.
final
- selectionModelType → SelectionModelType?
-
final
- showMeasures → bool
-
Whether or not the legend should show measures.
final
Methods
-
createCommonBehavior(
) → SeriesLegend< D> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCommonBehavior(
ChartBehavior commonBehavior) → void -
override
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override