Generator class abstract

An abstract class which both defines a template generator and can generate a user project based on this template.

Implemented types

Constructors

Generator(String? id, String? label, String? description, {List<String?>? categories = const []})

Properties

categories List<String?>?
final
description String?
final
entrypoint TemplateFile?
The entrypoint of the application; the main file for the project, which an IDE might open after creating the project.
no setter
files List<TemplateFile?>?
final
hashCode int?
The hash code for this object.
no setterinherited
id String?
final
label String?
final
runtimeType Type?
A representation of the runtime type of the object.
no setterinherited

Methods

addTemplateFile(TemplateFile? file) TemplateFile?
Add a new template file.
compareTo(Generator? other) int?
Compares this object to another object.
override
generate(String? projectName, GeneratorTarget? target, {Map<String?, String?>? additionalVars}) Future?
getFile(String? path) TemplateFile?
Return the template file wih the given path.
getInstallInstructions() String?
Return some user facing instructions about how to finish installation of the template.
noSuchMethod(Invocation? invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
numFiles() int?
setEntrypoint(TemplateFile? entrypoint) → void
Set the main entrypoint of this template. This is the 'most important' file of this template. An IDE might use this information to open this file after the user's project is generated.
toString() String?
A string representation of this object.
override

Operators

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