isFile static method

bool isFile(
  1. String filePath
)

Implementation

static bool isFile(String filePath) {
  FileSystemEntityType type = FileSystemEntity.typeSync(filePath);
  return type == FileSystemEntityType.file;
}