FlexiTimer class

A functional timer widget with start, pause, resume, and stop controls.

FlexiTimer displays an incremental timer and provides control buttons. It uses FlexiButton for its control interface and supports custom styling.

Inheritance

Constructors

FlexiTimer({Key? key, Color? buttonColor, Color? buttonTextColor = Colors.white, TextStyle? timerStyle, String startLabel = "Start", String pauseLabel = "Pause", String resumeLabel = "Resume", String stopLabel = "Stop", EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin})
Creates a FlexiTimer with customizable labels and controls.
const

Properties

buttonColor Color?
Color for the control buttons icons and backgrounds.
final
buttonTextColor Color?
Color for the text inside control buttons.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
Custom margin for the timer container.
final
padding EdgeInsetsGeometry?
Custom padding for the timer container.
final
pauseLabel String
Label for the pause button.
final
resumeLabel String
Label for the resume button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startLabel String
Label for the start button.
final
stopLabel String
Label for the stop button.
final
timerStyle TextStyle?
Optional text style for the timer display.
final

Methods

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