INNER CODE UNIT · Dart

_$

ShadyBoukhary/flutter_clean_architecture · lib/src/cli.dart:272

class _${pascalCaseName}ViewState extends CleanViewState<${pascalCaseName}View, ${pascalCaseName}Controller> {
  _${pascalCaseName}ViewState(${pascalCaseName}Controller controller) : super(controller);

  @override
  Widget get view {
    return const Placeholder();
  }
}
  ''';
}

/// Generates the Controller template content for a Clean Architecture page.
///
/// This function creates the Dart code for the Controller component, which includes:
/// - A `Controller` class that manages business logic and state
/// - Presenter dependency injection
/// - Required `initListeners()` method implementation
/// - Proper imports and dependencies

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…