onNewLogCall method

  1. @override
void onNewLogCall(
  1. void call()
)
override

Override this method to listen to new log calls and decide whether or not you should call dispatchLogCalls.

Implementation

@override
void onNewLogCall(final void Function() call) {
  if (_periodicTimer == null) {
    _periodicTimer = Timer.periodic(
      duration,
      (_) {
        super.dispatchLogCalls();
      },
    );
  }
}