Snippets class

Reusable code snippets shared across architecture templates.

Anything that is identical or near-identical between the clean / mvvm / feature-first / simple template sets lives here, parameterized by the pieces that actually differ (folder paths, import locations, class and provider names). Architecture templates compose these instead of copy-pasting the same Dart source.

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

appRouter({required String name, required String homeImport, required String homeWidget}) String
The go_router config with a single home route.
appWidget({required String name, required String title, required String themeImport, required String routerImport}) String
lib/app.dart — the MaterialApp.router wrapper.
dioClient() String
The Dio HTTP client provider.
homeScreen({required String name, required String title, required String designDir, required String className, required String providerName, List<String> providerImports = const [], String inlineProvider = ''}) String
The home screen / view — a ConsumerWidget rendering an AsyncValue.when body. The watched provider must expose an object with title and subtitle String fields.
mainDart(String name, {String? storageImport}) String
lib/main.dart.
welcomeModel(String className) String
A plain Equatable data model with title + subtitle.