FlexiTimer class

Inheritance

Constructors

FlexiTimer({Key? key, VoidCallback? onComplete, TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 24), TimerTextFormat timerFormat = TimerTextFormat.s, Icon? icon, double iconPadding = 10, double? iconSize = 24, Color? iconColor = Colors.black, bool isDiplayIcon = false, IconPosition iconPosition = IconPosition.suffix, Duration? duration, required FlexiTimerController controller})
const

Properties

controller FlexiTimerController
This param allows users to control the behaviour of timer
final
duration Duration?
This param allows user to personalise the duration of timer
final
hashCode int
The hash code for this object.
no setterinherited
icon Icon?
This param allows users to personalise the Icon widget
final
iconColor Color?
This param allows users to change the default icon color
final
iconPadding double
This param allows users to change the padding between the icon and the timer text
final
iconPosition IconPosition
This param allows users to change the position of icon
final
iconSize double?
This param allows users to change the default icon size
final
isDiplayIcon bool
This param allows users to control the visibility of icon
final
key Key?
Key for FlexiTimer
final
onComplete VoidCallback?
This callback will be executed after timed out
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle
This param allows users to style the text of timer
final
timerFormat TimerTextFormat
This param allows users to change the format of timer
final

Methods

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