InstallStubs class
Install command stub templates.
All methods are static and return valid Dart source code strings.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
appConfigContent(
{required StubDriver stubs, required List< String> providerImports, required List<String> providerEntries, List<String> authProviderEntries = const [], List<String> ? searchPaths}) → String -
Generates
lib/config/app.dartwith a dynamic providers list. -
appServiceProviderContent(
) → String -
Generates
lib/app/providers/app_service_provider.dart. -
authConfigContent(
) → String -
Generates
lib/config/auth.dartmatching the Uptizm production pattern. -
broadcastingConfigContent(
) → String -
Generates
lib/config/broadcasting.dartwith Reverb and null connections. -
cacheConfigContent(
) → String -
Generates
lib/config/cache.dartwithFileStore()driver and default TTL. -
databaseConfigContent(
) → String -
Generates
lib/config/database.dartwith SQLite as the default driver. -
envContent(
{required String appName, bool withoutBroadcasting = false}) → String -
Generates a
.envtemplate file with sensible defaults. -
envExampleContent(
{bool withoutBroadcasting = false}) → String -
Generates a
.env.exampletemplate file with empty values. -
kernelDartContent(
) → String -
Generates
lib/app/kernel.dart, the HTTP middleware registry. -
loggingConfigContent(
) → String -
Generates
lib/config/logging.dartwith stack -> console channel setup. -
mainDartContent(
{required StubDriver stubs, required String appName, required List< String> configImports, required List<String> configFactories, List<String> ? searchPaths}) → String -
Generates the
lib/main.dartbootstrap file. -
networkConfigContent(
) → String -
Generates
lib/config/network.dartwith a single API driver. -
routesAppContent(
{required String appName}) → String -
Generates
lib/routes/app.dartwith a single welcome route. -
routeServiceProviderContent(
) → String -
Generates
lib/app/providers/route_service_provider.dart. -
routingConfigContent(
) → String -
Generates
lib/config/routing.dartwith URL strategy config. -
viewConfigContent(
) → String -
Generates
lib/config/view.dartwith Wind UI dialog/confirm classes. -
welcomeViewContent(
{required String appName}) → String -
Generates
lib/resources/views/welcome_view.dart. -
widgetTestContent(
) → String -
Generates a Magic-compatible smoke test for
test/widget_test.dart.