ClassChecker class
A utility class to check Dart classes for specific criteria related to Firestorm objects.
Constructors
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
- 
  checkClassesForValidFSTypes(List< ClassElement> classes) → Set<ClassElement> 
- Checks if the classes have valid types for Firestore.
- 
  checkClassesForValidRDBTypes(List< ClassElement> classes) → Set<ClassElement> 
- Checks if the classes have valid RDB types.
- 
  filter(Iterable< ClassElement> classes) → ValidClassHolder
- Filters the provided iterable of ClassElements to find valid classes for Firestorm. Returns a ValidClassHolder containing two lists: one for Firestore valid classes and one for RDB valid classes.
- 
  findAnnotatedClasses(Iterable< ClassElement> classes) → List<ClassElement> 
- Finds all classes annotated with @FirestormObject in the provided iterable of ClassElements. Returns a list of ClassElements that are annotated with @FirestormObject.
- 
  findClassesWithIDField(List< ClassElement> classes) → List<ClassElement> 
- Finds all classes that have an ID field of type String from a list of classes. Checks both the class itself and its superclasses for an ID field. Returns a list of ClassElements that meet the criteria.
- 
  findClassesWithPublicNoArgConstructor(List< ClassElement> classes) → List<ClassElement> 
- Finds all classes that have a public, no-argument constructor from a list of classes. Returns a list of ClassElements that meet the criteria.
- 
  isEnumType(DartType type) → bool 
- Checks if the given DartType is an enum.