QUButton constructor Null safety

const QUButton(
  1. {Key? key,
  2. required String text,
  3. dynamic onPressed(
      )?}
    )

    Implementation

    const QUButton({Key? key, required this.text, this.onPressed})
        : super(key: key);