profileModelExists method

Future<bool> profileModelExists(
  1. AnkiMapping mapping
)

Returns whether or not a given AnkiMapping's model exists in Anki.

Implementation

Future<bool> profileModelExists(AnkiMapping mapping) async {
  List<String> models = await getModelList();
  return models.contains(mapping.model);
}