A tiny package that tracks idleness in a web application.
A simple usage example:
import 'package:idle_tracker/idle_tracker.dart';
void main() {
new IdleTracker(
timeout: const Duration(seconds: 5),
periodicIdleCall: true,
startsAsIdle: true,
onIdle: () => print('Hey, are you there?'),
onActive: () => print('Welcome back!'))
..start();
}
Please file feature requests and bugs at the issue tracker.