close method

Future<void> close()

Cancels subscription to a logger stream and frees dedicated resources.

Handler.close is called as part of the Logger.close call on the logger this Handler is subscribed to, therefore, it is unnecessary to call this after logger close.

Override this if additional operations are needed to free allot resources.


Future<void> close() async {
  await _subscription?.cancel();
  _subscription = null;