exists method

bool exists()

Returns a bool indicating whether the filePath exists or not.

Implementation

bool exists() {
  final dotEnvFile = File(filePath);
  if (!dotEnvFile.existsSync()) {
    return false;
  }
  return true;
}