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 (kIsWasm || kIsWeb) {
throw PlatformException(
code: 'unsupported',
message: 'This method is not supported on the web.',
);
}
if (_openedFile != null) {
text = File(_openedFile!).readAsStringSync();
}
}