OfflineFirstGenerator<_ClassAnnotation> class abstract

Output serializing code for all models with the @_ClassAnnotation annotation

Constructors

OfflineFirstGenerator({String? superAdapterName, String? repositoryName})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
repositoryName String
The prefix to the repository name, specified when declaring the repository type in serializing functions; useful if extending OfflineFirstRepository. Defaults to OfflineFirst.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superAdapterName String
The prefix to the adapter name; useful if extending OfflineFirstRepository. Defaults to OfflineFirst.
final
throwOnUnresolved bool
finalinherited
typeChecker → TypeChecker
no setterinherited

Methods

buildGenerators(Element element, ConstantReader annotation) List<SerdesGenerator<FieldSerializable, Model>>
Given an element and an annotation, scaffold all (de)serializing generators per provider.
inherited
generate(LibraryReader library, BuildStep buildStep) FutureOr<String>
Generates Dart code for an input Dart library.
inherited
generateAdapter(Element element, ConstantReader annotation, BuildStep? buildStep) String
Combine relevant serdes generators for output to a single file: the adapter.
inherited
generateForAnnotatedElement(Element element, ConstantReader annotation, BuildStep buildStep) String
Outputs any sub generators with the exception of the adapter. The adapter should include code generated by this method.
inherited
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