RepositoryGenerator class
Generates repository interfaces and implementations.
Creates:
{Name}Repository— abstract interface{Name}RepositoryImpl— implementation delegating to datasource
final gen = RepositoryGenerator(typeMapper: mapper);
final code = gen.generate(name: 'Product', methods: [...]);
Constructors
- RepositoryGenerator({required TypeMapper typeMapper})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeMapper → TypeMapper
-
final
Methods
-
generate(
{required String name, required List< RepoMethod> methods}) → String -
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