updateAnimalConfig method

  1. @override
Future<void> updateAnimalConfig(
  1. AnimalConfig config
)
override

Implementation

@override
Future<void> updateAnimalConfig(AnimalConfig config) =>
    _commandChannel.invokeMethod<void>('updateAnimalConfig', {
      // animalModelPath is intentionally omitted: the model is start-time-only.
      'animalScoreThreshold': config.scoreThreshold,
      'animalMaxResults': config.maxResults,
      if (config.allowedCategories != null)
        'animalAllowedCategories': config.allowedCategories!.toList(),
      if (config.deniedCategories != null)
        'animalDeniedCategories': config.deniedCategories!.toList(),
      'detectBreed': config.detectBreed,
      'breedMaxResults': config.breedMaxResults,
      'breedClassifiableCategories':
          config.breedClassifiableCategories.toList(),
    });