getAutoFieldEnhancement method

Enhancement? getAutoFieldEnhancement(
  1. {required AppModel appModel,
  2. required Field field}
)

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;
}