utils library

Extensions

DartTypeExtension on DartType

Functions

assertClass(Element element) → ClassElement
Asserts that element is a class.
assertPodo(Element element) → ClassElement
Asserts that element is an immutable PlainOldDartObject
findTransferIdField(ClassElement element) → FieldElement?
getAnnotation(Element element, Type annotationType) → DartObject?
getLayoutName(ClassElement element) String
podoFields(ClassElement classElement) List<Tuple<FieldElement, ParameterElement>>
Returns all PlainOldDartObject fields together with their initializing parameters.
readField<T>(DartObject? element, String fieldName) → T?
readTypeField(DartObject? element, String fieldName) → DartType?
toLiteral(dynamic value) String
Returns the dart literal equivalent to value.