textButton method

Widget textButton(
  1. BuildContext context, {
  2. required void onPressed()?,
})

Text button (low emphasis) Text buttons are typically used for less important actions. Widget to be converted to a Material.IO Widget TextButton.

Implementation

Widget textButton(
  BuildContext context, {
  required void Function()? onPressed,
}) =>
    TextButton(onPressed: onPressed, child: this);