profileFieldMatchesCardTypeCount method

Future<bool> profileFieldMatchesCardTypeCount(
  1. AnkiMapping mapping
)

Returns whether or not a given AnkiMapping has the same amount of fields as the model it uses.

Implementation

Future<bool> profileFieldMatchesCardTypeCount(AnkiMapping mapping) async {
  List<String> fields = await getFieldList(mapping.model);
  return mapping.exportFieldKeys.length == fields.length;
}