ClassElementFieldExtension extension

Adds field and method retrieval features to the ClassElement class

on
  • InterfaceElement

Methods

getConstructorsMatchingFields({required Iterable<FieldDescriptorBase> fieldDescriptors, bool allowMissingFields = false, Set<String> missingFields = const <String>{}}) Iterable<ConstructorElement>
Gets all constructors that match a certain set of FieldDescriptors.
getSortedFieldSet({bool includeInherited = true}) Iterable<FieldElement>
Gets the public instance fields of the class
getSortedMethods({bool includeInherited = true}) Iterable<MethodElement>
Gets the public methods of the class