unregisterPlugin method

void unregisterPlugin(
  1. AWSLoggerPlugin plugin
)

Unregisters plugin from this logger instance.

Implementation

void unregisterPlugin(AWSLoggerPlugin plugin) {
  final currentSubscription = _subscriptions.remove(plugin);
  if (currentSubscription != null) {
    unawaited(currentSubscription.cancel());
  }
}