IndicatorStyle class
Used to customize the indicator from the line.
Constructors
- IndicatorStyle({double width = 20, double height = 20, Widget? indicator, EdgeInsets padding = const EdgeInsets.all(0), Color color = Colors.grey, IconStyle? iconStyle, double indicatorXY = 0.5, bool drawGap = false})
-
const
Properties
- color → Color
-
The color used to paint the default indicator. It defaults to (Colors.grey).
final
- drawGap → bool
-
If the line must not be drawn behind the icon. If true, there will be a gap
even if the vertical/horizontal padding is 0. It defaults to false.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height from the indicator.
It defaults to 20.
Ignored in case the default indicator is rendered and the tile axis
is TimelineAxis.vertical.
final
- iconStyle → IconStyle?
-
The style of the icon used inside the default indicator, if any.
It will only be used with the default indicator, and ignored in case there
is a custom indicator provided.
final
- indicator → Widget?
-
A custom widget to use as indicator. if not provided it will be rendered a
default circle as indicator.
final
- indicatorXY → double
-
Value from 0.0 to 1.0 indicating the percentage in which the indicator
should be positioned on the line, either on Y if TimelineAxis.vertical
or X if TimelineAxis.horizontal.
For example, 0.2 means 20% from start to end. It defaults to 0.5.
final
- padding → EdgeInsets
-
The padding used with the indicator. It defaults to 0.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalHeight → double
-
The total indicator height, including padding.
no setter
- totalWidth → double
-
The total indicator width, including padding.
no setter
- width → double
-
The width from the indicator.
It defaults to 20.
Ignored in case the default indicator is rendered and the tile axis
is TimelineAxis.horizontal.
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.
inherited