initialize method

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

Subclasses should put any necessary post-construction async initialization in this method.

Implementation

@override
Future<void> initialize() async {
  _boxName = 'notifications_${AtUtils.getShaForAtSign(currentAtSign)}';
  await super.openBox(_boxName);
  await _populateExpiryIndex();
}