existsSync method

bool existsSync()

Returns true if the script file exists.

Implementation

bool existsSync() {
  fileInstance ??= File(_filePath);
  _exists ??= fileInstance!.existsSync();
  return _exists!;
}