INNER CODE UNIT · Dart
YOLO
ultralytics/yolo-flutter-app · lib/yolo.dart:34
class YOLO {
YOLOInference? _inference;
YOLOModelManager? _modelManager;
YOLOResolvedModel? _resolvedModel;
late final String _instanceId;
late final MethodChannel _channel;
bool _isInitialized = false;
/// The unique instance ID for this YOLO instance
String get instanceId => _instanceId;
/// Returns `true` if the model has been successfully loaded via [loadModel],
/// `false` otherwise. This can be used to check if the model is ready before
/// calling [predict] to avoid catching [ModelNotLoadedException].
bool get isInitialized => _isInitialized;
/// Path to the YOLO model file. This can be:
/// - An official model ID (e.g., 'yolo26n')