mainFile top-level constant
Implementation
const mainFile = [
"import 'package:flutter/material.dart';",
"import 'package:{app}/service/navigation/navigation.service.dart';",
'void main() => runApp(const MyApp());',
'class MyApp extends StatelessWidget {',
' const MyApp({super.key});',
' @override',
' Widget build(BuildContext context) {',
' return MaterialApp.router(',
' debugShowCheckedModeBanner: false,',
' routerConfig: NavigationService.router,',
' );',
' }',
'}'
];