remainingMs static method
Milliseconds left (0 when over), or null when no timer runs.
Implementation
static int? remainingMs({int? now}) {
final endsAt = notifier.value.endsAt;
if (endsAt == null) return null;
final left = endsAt - (now ?? DateTime.now().millisecondsSinceEpoch);
return left < 0 ? 0 : left;
}