closeSync method

Future<void> closeSync()

Implementation

Future<void> closeSync() async {
  await syncerActiveStatusSubscription?.cancel();
  await fileContentSubscription?.cancel();
  fileContentSubscription = null;
  syncerActiveStatusSubscription = null;
  await fileSyncer?.dispose();
  fileSyncer = null;
  emit(state.copyWith(isSyncedWithFile: false));
}