ModelDictionaryGenerator class abstract

Given a list of models, output generated code to use as brick.g.dart file

Constructors

ModelDictionaryGenerator()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
requiredImports String
As a part, adapters have access to imports in the model dictionary file so any methods that incorporate Type definitions should be listed here. For example, importing a SqliteProvider or a DatabaseExecutor. Consider adding analyzer ignores to disable 'unused_import' warnings.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

adaptersFromFiles(Map<String, String> classNamesToFileNames) String
Adapter part imports
dictionaryFromFiles(Map<String, String> classNamesToFileNames) String
generate(Map<String, String> classNamesToFileNames) String
Complete modelDictionary code, including imports classNamesToFileNames are filenames included to generate the import/export statements
modelsFromFiles(Map<String, String> classNamesToFileNames) String
Model imports
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

Constants