content property
Store the content that will be written to the file in a String or Future
Implementation
@override
String get content => '''import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'infrastructure/navigation/navigation.dart';
import 'infrastructure/navigation/routes.dart';
void main() async {
var initialRoute = await Routes.initialRoute;
runApp(Main(initialRoute));
}
class Main extends StatelessWidget {
final String initialRoute;
Main(this.initialRoute);
@override
Widget build(BuildContext context) {
return GetMaterialApp(
initialRoute: initialRoute,
getPages: Nav.routes,
);
}
}''';