Generator class

A generator for creating a Dart class containing asset path constants.

Constructors

Generator(String projectPath, {String outputPath = 'lib/generated/assets.dart'})
Creates a new Generator for the project at projectPath.

Properties

hashCode int
The hash code for this object.
no setterinherited
outputPath String
The relative path where the generated file will be saved.
final
projectPath String
The path to the project root.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate(List<String> assetPaths) Future<void>
Generates the Dart file containing asset path constants.
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