ThemeGenerator class
Generates or updates the Material 3 theme layer.
- Inheritance
-
- Object
- BaseGenerator
- ThemeGenerator
Constructors
- ThemeGenerator({required FileManager fileManager, required ProjectConfig config, Directory? projectDir, bool dryRun = false, bool force = false, bool skipExisting = false})
Properties
- config → ProjectConfig
-
finalinherited
- dryRun → bool
-
finalinherited
- fileManager → FileManager
-
finalinherited
- force → bool
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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