MultiSegmentLinearIndicator class

Inheritance

Constructors

MultiSegmentLinearIndicator.new({Key? key, required List<SegmentLinearIndicator> segments, double lineHeight = 5.0, double? width, Radius? barRadius, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10.0), bool animation = false, int animationDuration = 500, Curve curve = Curves.linear, bool animateFromLastPercent = false, VoidCallback? onAnimationEnd})
Creates a multi-segment linear progress indicator.

Properties

animateFromLastPercent bool
Whether to animate from the last percentage value or from 0
final
animation bool
Whether to animate changes in the progress values
final
animationDuration int
Duration of the animation in milliseconds
final
barRadius Radius?
Border radius of the progress bar
final
curve Curve
Animation curve to use
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lineHeight double
Height of the progress bar
final
onAnimationEnd VoidCallback?
Callback when animation completes
final
padding EdgeInsets
Padding around the progress bar
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments List<SegmentLinearIndicator>
List of segments to display in the indicator.
final
width double?
Optional width of the progress bar. If null, fills the parent width
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MultiSegmentLinearIndicator>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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