toggle after a specific time.
Future<void> delayedToggle(Duration delay) async { await delay.delayed<void>(); toggle(); }