refetchFile method

void refetchFile()

Refetch the current file to delflect text changes Only works if a valid file is provided via filePath.

Implementation

void refetchFile() {
  if (_openedFile != null) {
    text = File(_openedFile!).readAsStringSync();
  }
}