contents method

Future<String?> contents()

Returns the contents of the script file.

Returns null if the file does not exist.

Implementation

Future<String?> contents() async {
  _contents ??= await exists() ? await fileInstance!.readAsString() : null;
  return _contents;
}