predictorInstance method

Future<void> predictorInstance()

Implementation

Future<void> predictorInstance() async {
  if (!_isInitialized) {
    await initializeInstance();
  }
  final Map<String, dynamic> arguments = {};
  if (_instanceId != 'default') {
    arguments['instanceId'] = _instanceId;
  }
  try {
    await _channel.invokeMethod('predictorInstance', arguments);
  } catch (e) {
    throw YOLOErrorHandler.handleError(
      e,
      'Failed to predictorInstance for instance $_instanceId',
    );
  }
}