MyWidget constructor

const MyWidget({
  1. Key? key,
  2. required String text,
})

Implementation

const MyWidget({super.key, required this.text});