existsSync method

  1. @override
bool existsSync(
  1. String path
)
override

Checks if a file or directory exists.

Implementation

@override
bool existsSync(String path) {
  return File(path).existsSync() || Directory(path).existsSync();
}