start method

Future<void> start({
  1. dynamic intervalInSeconds = 5,
})

Implementation

Future<void> start({intervalInSeconds = 5}) async {
  _infoReaderTimer?.cancel();
  _infoReaderTimer = Timer.periodic(Duration(seconds: intervalInSeconds), (timer) async {
    final value = await ActiveWindow.getActiveWindowInfo;
    _controller.add(value);
  });
}