stop_watch_timer
This is Stop Watch Timer.
Example code
See the example directory for a complete sample app using stop_watch_timer.
Installation
Add this to your package's pubspec.yaml file:
dependencies:
stop_watch_timer:
Usage
To operation stop watch.
Using callback
Using stream
Display time formatted stop watch. Using function of "rawTime" and "getDisplayTime".
Example code using stream builder.
Notify from "secondTime" every second.
Example code using stream builder.
Notify from "minuteTime" every minute.
Example code using stream builder.
Notify lap time.
Example code using stream builder.
Parsing Time
Can be used getDisplayTime func. It display time like a real stopwatch timer.
- Hours
- Minute
- Second
- Millisecond
For example, 1 hours and 30 minute and 50 second and 20 millisecond => "01:30:50.20"
And can be set enable/disable display time and change split character.
Set Preset Time
Can be set preset time. This case is "00:01.23".
When timer is idle state, can be set this.