onChange property

void Function(string s)? onChange
final

The callback that is called every time the clock contents change. if the clock contains only hours and minutes, this callback is called every minute. if the clock contains hours, minutes and seconds, this callback is called every second. if the clock contains hours, minutes, seconds and milliseconds, this callback is called every millisecond. if the clock contains hours, minutes, seconds, milliseconds and microseconds, this callback is called every microsecond. The callback receives the current time as a string formatted by format.

Implementation

final void Function(string s)? onChange;