parseEnumType function
Implementation
List<String> parseEnumType(String type) {
if (!type.startsWith('enum[') || !type.endsWith(']')) {
throw FormatException('Invalid Enum Type');
}
return type
.substring(4, type.length - 1)
.split(',')
.map((it) => it.trim())
.toList();
}