statefulTemplate property
String
get
statefulTemplate
Implementation
static String get statefulTemplate =>
'''import 'package:flutter/material.dart';
class {{name}} extends StatefulWidget {
const {{name}}({Key? key}) : super(key: key);
@override
_{{name}}State createState() => _{{name}}State();
}
class _{{name}}State extends State<{{name}}> {
@override
Widget build(BuildContext context) {
// TODO: implement build
return Center(
child: const Text('{{name}}'),
);
}
}''';