IndicatorThemeData class Null safety

Defines the visual properties of DotIndicator, indicators inside TimelineNodes.

Descendant widgets obtain the current IndicatorThemeData object using IndicatorTheme.of(context). Instances of IndicatorThemeData can be customized with IndicatorThemeData.copyWith.

Typically a IndicatorThemeData is specified as part of the overall TimelineTheme with TimelineThemeData.indicatorTheme.

All IndicatorThemeData properties are null by default. When null, the widgets will provide their own defaults.

See also:

Mixed in types
Annotations

Constructors

IndicatorThemeData({Color? color, double? size, double? position})
Creates a theme that can be used for IndicatorTheme or TimelineThemeData.indicatorTheme.
const

Properties

color Color?
The color of DotIndicators and indicators inside TimelineNodes, and so forth.
final
hashCode int
The hash code for this object.
read-onlyoverride
position double?
A position of indicator inside both two connectors.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
size double?
The size of DotIndicators and indicators inside TimelineNodes, and so forth in logical pixels.
final

Methods

copyWith({Color? color, double? size, double? position}) IndicatorThemeData
Creates a copy of this object with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

lerp(IndicatorThemeData? a, IndicatorThemeData? b, double t) IndicatorThemeData
Linearly interpolate between two Indicator themes.