isModelAvailable static method

bool isModelAvailable({
  1. String? path,
  2. String? directory,
  3. QLayaModelSpec? model,
})

Checks whether the model file is already present on local disk.

Implementation

static bool isModelAvailable({
  String? path,
  String? directory,
  QLayaModelSpec? model,
}) {
  final file = _resolveTargetFile(
    path: path,
    directory: directory,
    model: model,
  );
  return file.existsSync() && file.lengthSync() > 1024 * 1024;
}