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.dart with a dynamic providers list.
appServiceProviderContent() String
Generates lib/app/providers/app_service_provider.dart.
authConfigContent() String
Generates lib/config/auth.dart matching the Uptizm production pattern.
broadcastingConfigContent() String
Generates lib/config/broadcasting.dart with Reverb and null connections.
cacheConfigContent() String
Generates lib/config/cache.dart with FileStore() driver and default TTL.
databaseConfigContent() String
Generates lib/config/database.dart with SQLite as the default driver.
envContent({required String appName, bool withoutBroadcasting = false}) String
Generates a .env template file with sensible defaults.
envExampleContent({bool withoutBroadcasting = false}) String
Generates a .env.example template file with empty values.
kernelDartContent() String
Generates lib/app/kernel.dart, the HTTP middleware registry.
loggingConfigContent() String
Generates lib/config/logging.dart with 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.dart bootstrap file.
networkConfigContent() String
Generates lib/config/network.dart with a single API driver.
routesAppContent({required String appName}) String
Generates lib/routes/app.dart with a single welcome route.
routeServiceProviderContent() String
Generates lib/app/providers/route_service_provider.dart.
routingConfigContent() String
Generates lib/config/routing.dart with URL strategy config.
viewConfigContent() String
Generates lib/config/view.dart with 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.