MetroService class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
addToConfig ({required String configName , required String classImport , required String createTemplate (String originalFile ) })
→ dynamic
Attempts to replace a file. Provide a configName
to select which file to replace.
Then you can use the callback originalFile
to get the file and manipulate it.
addToRouter ({String routerName = "router" , required String classImport , required String createTemplate (String originalFile ) })
→ dynamic
Attempts to replace a file. Provide a routerName
to select which file to replace.
Then you can use the callback originalFile
to get the file and manipulate it.
checkArguments (List <String > arguments , String usage )
→ dynamic
Checks that a command has arguments
.
createSlate (List <NyTemplate > templates , {bool ? hasForceFlag })
→ dynamic
Creates a new Slate using templates
.
hasFile (dynamic path )
→ Future <bool >
Check if a file exist by passing in a path
.
hasHelpFlag (bool hasHelpFlag , String usage )
→ dynamic
Checks if the help flag is set.
loadAsset (String assetPath )
→ Future <String >
Load an asset from the project using an assetPath
.
makeApiService (String className , String value , {String folderPath = networkingFolder , bool forceCreate = false })
→ dynamic
Creates a new API service.
makeController (String className , String value , {String folderPath = controllersFolder , bool forceCreate = false })
→ Future
Creates a new Controller.
makeDirectory (String folderPath )
→ dynamic
Creates a new Director.
makeEvent (String className , String value , {String folderPath = eventsFolder , bool forceCreate = false })
→ dynamic
Creates a new Event.
makeModel (String className , String value , {String folderPath = modelsFolder , bool storable = false , bool forceCreate = false })
→ dynamic
Creates a new Model.
makePage (String className , String value , {String folderPath = pagesFolder , bool forceCreate = false , String ? pathWithinFolder })
→ dynamic
Creates a new Page.
makeProvider (String className , String value , {String folderPath = providerFolder , bool forceCreate = false })
→ dynamic
Creates a new Provider.
makeStatefulWidget (String className , String value , {String folderPath = widgetsFolder , bool forceCreate = false })
→ dynamic
Creates a new Stateful Widget.
makeStatelessWidget (String className , String value , {String folderPath = widgetsFolder , bool forceCreate = false })
→ dynamic
Creates a new Stateless Widget.
makeTheme (String className , String value , {String folderPath = themesFolder , bool forceCreate = false })
→ dynamic
Creates a new Theme.
makeThemeColors (String className , String value , {String folderPath = themeColorsFolder , bool forceCreate = false })
→ dynamic
Creates a new Stateful Widget.