initialize method

Future<void> initialize()

Implementation

Future<void> initialize() async {
  //ignore:invalid_use_of_protected_member
  final map = await persistence.getMap(key);
  if (map != null) {
    final value = fromMap(map);
    if (value != null) controller.add(value);
  }
}