content property

  1. @override
String content
override

Store the content that will be written to the file in a String or Future

Implementation

@override
String get content => '''$import


class UninitializedWidget extends StatelessWidget {
const UninitializedWidget({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
  return const Scaffold(
    backgroundColor: Colors.white,
    body: Center(
      child: CircularProgressIndicator(),
    ),
  );
}
}
''';