T0TTimer class

Tang0 Timer preset (T0T).

Sends lightweight periodic state updates and lifecycle events over a shared channel. This file is intentionally not exported from package:tang0/tang0.dart.

Message commands:

  • T0T_{serial}_SYNC (every syncInterval)
  • T0T_{serial}_PAUSE
  • T0T_{serial}_RESUME
  • T0T_{serial}_END

Constructors

T0TTimer({required String serial, Duration? duration, Duration? syncInterval, Map<String, dynamic>? meta, bool listen = true})

Properties

duration Duration?
final
elapsed Duration
Elapsed time excluding pauses.
no setter
events Stream<Map<String, dynamic>>
no setter
hashCode int
The hash code for this object.
no setterinherited
isEnded bool
no setter
isPaused bool
no setter
meta Map<String, dynamic>
Optional user metadata merged into outgoing messages under meta.
final
remaining Duration?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serial String
final
startedAt DateTime
no setter
syncInterval Duration
final

Methods

dispose() → void
end() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
reset({DateTime? startAt}) → void
resume() → void
sync() → void
Manually send a SYNC state update.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

channelId → const String