I have data passed into the widget and I want data to be the initial value for the TextFormField

I have tried using initialValue but found out you cant use an initial value with a controller

from some research i have found that you can set an initial value in a controller using: final controller = TextEditingController(text: 'value')

but I want data to be the initial value and I haven't found a way to create the variable in the class.

final controller = TextEditingController();

class Form extends StatelessWidget {
  final data;

  const Form({Key? key, required this.data}) : super(key: key);

  Widget build(BuildContext context) {
    return Column(
      children: [
          controller: controller,