Generator class

Generator takes an Structure object, to specify where to create .dart files

Constructors

Generator({Structure currentStructure})

Properties

currentStructure Structure
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createBloc(ArgResults results) Future<void>
createFile({FileModel fileModel}) Future<File>
This function only handles file creation
getBloc(String fileName) String
getBlocEvent(String fileName) String
getBlocExporter(String fileName) String
getBlocState(String fileName) String
getOnlyClass(String fileName) String
this function returns a String for creating only Class with specified name
getStateFul(String fileName) String
This function returns a String with specified class name which extends from StatefulWidget
getStateLess(String fileName) String
This function returns a String with specified class name which extends from StatelessWidget
handleFileCreate(ArgResults results, {bool isOnlyClass: false}) Future
This method creates the file in expected path and writes inside a file as expected. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited