ENTRYPOINT_DART_TPL top-level constant

String const ENTRYPOINT_DART_TPL

Template for the main executable file: bin/{{projectName}}.dart. This file contains the primary main function that initializes the application runner.

Variables:

  • {{projectName}}: Project name (used for imports).
  • {{functionName}}: The name of the bootstrap function (e.g., runApp).

Implementation

const String ENTRYPOINT_DART_TPL = r'''
import 'package:{{projectName}}/{{projectName}}.dart';

Future<void> main(List<String> args) async {
  await {{functionName}}(args);
}
''';