DatasourceGenerator class

Generates Remote and Local data sources.

Inheritance

Constructors

DatasourceGenerator({required String name, String? featureName, required FileManager fileManager, required ProjectConfig config, Directory? projectDir, bool dryRun = false, bool force = false, bool skipExisting = false})

Properties

config → ProjectConfig
finalinherited
dryRun → bool
finalinherited
featureName → String?
final
fileManager → FileManager
finalinherited
force → bool
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
packageName → String
Retrieves the Flutter app package name from pubspec.yaml.
no setterinherited
projectDir → Directory
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skipExisting → bool
finalinherited

Methods

generate() → Future<List<FileGenerationResult>>
Executes the generator.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderAndWrite({required String relativePath, required String templateName, required String defaultContent, required Map<String, dynamic> context}) → FileGenerationResult
Helper to render and safely write a template.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited