LegendItemStyle class
An immutable style that can be applied to LegendItems.
- Annotations
Constructors
- LegendItemStyle({double handleSize = 10, double maxLabelSize = 160, BoxDecoration handleDecoration = const BoxDecoration(shape: BoxShape.circle), EdgeInsets handlePadding = const EdgeInsets.symmetric(horizontal: 4), EdgeInsets labelPadding = const EdgeInsets.symmetric(horizontal: 2), EdgeInsets valueLabelPadding = const EdgeInsets.symmetric(horizontal: 2), EdgeInsets padding = const EdgeInsets.symmetric(vertical: 2, horizontal: 4), LegendItemBehavior behavior = LegendItemBehavior.both, TextStyle? labelStyle, TextStyle? valueLabelStyle})
-
Creates a style for LegendItems.
const
Properties
- behavior → LegendItemBehavior
-
Describes how the LegendItem paints its text.
final
- handleDecoration → BoxDecoration
-
The decoration applied to the handle.
final
- handlePadding → EdgeInsets
-
The padding around the handle.
final
- handleSize → double
-
The size of the handle.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- labelPadding → EdgeInsets
-
The padding around the label.
final
- labelStyle → TextStyle?
-
The fallback style for the Segment.label.
final
- maxLabelSize → double
-
The maximum width of the label.
final
- padding → EdgeInsets
-
The padding around the LegendItem.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- valueLabelPadding → EdgeInsets
-
The padding around the value label.
final
- valueLabelStyle → TextStyle?
-
The fallback style for the Segment.valueLabel.
final
Methods
-
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