isModelAvailable static method
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;
}