controllerStub function

String controllerStub({
  1. required String controllerName,
})

This stub is used to create a new Controller.

Implementation

String controllerStub({required String controllerName}) => '''
import '/app/controllers/controller.dart';
import 'package:flutter/widgets.dart';

class ${controllerName.pascalCase}Controller extends Controller {

  @override
  construct(BuildContext context) {
    super.construct(context);

  }

}
''';