init method

  1. @override
Future<void> init()
override

Implementation

@override
Future<void> init() async {
  if (!_initialized) {
    logger.i('Initialized');
    await _restore();
    _cached
        .forEach((expiration) => expirations[expiration.target] = expiration);
    _cached = [];
    _registerEventListeners();
    _initialized = true;
  }
}