onInitialized method

  1. @override
  2. @mustCallSuper
Future<void> onInitialized()
inherited

Implementation

@override
@mustCallSuper
Future<void> onInitialized() async {
  await super.onInitialized();
  // wipe out orphans
  graph.removeOrphanNodes();
  // ensure offline nodes exist
  if (!graph.hasNode(_offlineAdapterKey)) {
    graph.addNode(_offlineAdapterKey);
  }
}