idIsNatural function

bool idIsNatural(
  1. Map aMap
)

True when id was author-supplied rather than auto-generated at card load.

Implementation

bool idIsNatural(Map aMap) {
  final String? id = aMap['id']?.toString();
  final String? type = aMap['type']?.toString();
  return UUIDGenerator().isNaturalId(id, type);
}