CountDownProgressIndicator class

Create a Circular countdown indicator

Inheritance

Constructors

CountDownProgressIndicator({Key? key, required int duration, int initialPosition = 0, required Color backgroundColor, required Color valueColor, CountDownController? controller, Function? onComplete, TextStyle? timeTextStyle, String timeFormatter(int seconds)?, TextStyle? labelTextStyle, double strokeWidth = 10, String? text, bool autostart = true})
const

Properties

autostart bool
true by default, this value indicates that the timer will start automatically
final
backgroundColor Color
Default Background color
final
controller CountDownController?
This controller is used to restart, stop or resume the countdown
final
duration int
Timer duration in seconds
final
hashCode int
The hash code for this object.
no setterinherited
initialPosition int
Initial time, 0 by default
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelTextStyle TextStyle?
The style for the widget label The default is black color, and fontWeight of W600
final
onComplete Function?
This call callback will be excuted when the Countdown ends.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeWidth double
Stroke width, the default is 10
final
text String?
This text will be shown with the time indicator
final
timeFormatter → (String Function(int seconds)?)
The formatter for the time string By default, no formatting is applied and the time is displayed in number of seconds left
final
timeTextStyle TextStyle?
The style for the remaining time indicator The default is black color, and fontWeight of W600
final
valueColor Color
Filling color
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _CountDownProgressIndicatorState
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}) 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