contentsSync method
Returns the contents of the script file.
Returns null if the file does not exist.
Implementation
String? contentsSync() {
_contents ??= existsSync() ? fileInstance!.readAsStringSync() : null;
return _contents;
}
Returns the contents of the script file.
Returns null if the file does not exist.
String? contentsSync() {
_contents ??= existsSync() ? fileInstance!.readAsStringSync() : null;
return _contents;
}