content property
Store the content that will be written to the file in a String or Future
Implementation
@override
String get content => '''$import
class ${_viewName.pascalCase}Screen extends BaseScreen<${_viewName.pascalCase}Controller, ${_viewName.pascalCase}State> {
${_viewName.pascalCase}Screen({Key? key}) : super(key: key);
@override
Widget builder(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('app_name'.tr())),
body: const SingleChildScrollView(
physics: const ClampingScrollPhysics(),
child: Text('$_viewName'),
),
);
}
}
''';