getAutoFieldEnhancement method
Returns the enhancement active for a certain field in the persisted enhancements map.
Implementation
Enhancement? getAutoFieldEnhancement(
{required AppModel appModel, required Field field}) {
String? enhancementName = getAutoFieldEnhancementName(field: field);
if (enhancementName == null) {
return null;
}
Enhancement? enhancement = appModel.enhancements[field]![enhancementName];
return enhancement;
}