isEnum function
Returns true if the TypeDeclaration represents an enum.
Implementation
bool isEnum(Root root, TypeDeclaration type) =>
root.enums.map((Enum e) => e.name).contains(type.baseName);
Returns true if the TypeDeclaration represents an enum.
bool isEnum(Root root, TypeDeclaration type) =>
root.enums.map((Enum e) => e.name).contains(type.baseName);