contentsSync method

String? contentsSync()

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;
}