isModelLoaded property

bool get isModelLoaded

Checks if the classification model is loaded and ready for use.

Returns true if the model has been successfully loaded and is available for classification operations, false otherwise.

Example:

if (!classificationService.isModelLoaded) {
  await classificationService.loadModel();
}
final result = await classificationService.classifyImage(imageFile);

Implementation

bool get isModelLoaded => _model != null;