closeSync method
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));
}