isValidFieldType function

bool isValidFieldType(
  1. String fieldType
)

Implementation

bool isValidFieldType(String fieldType) => FormFieldType.values.map((e) => e.toString()).contains(fieldType);