dispose method Null safety

Future<void> dispose()

Implementation

Future<void> dispose() => Future.wait([
      optimisticPatchesStream.close(),
      _eventStream.close(),
      store.dispose(),
    ]);