PlatformDialogActionText constructor

const PlatformDialogActionText({
  1. Key? key,
  2. required String text,
  3. dynamic onPressed()?,
  4. bool isDestructiveAction = false,
  5. bool isDefaultAction = false,
})

Creates a new platform aware dialog action.

Translates to a TextButton on material and a CupertinoDialogAction on cupertino. Default actions will have bold text but only on cupertino. Destructive actions will be rendered in red text on cupertino and with a red filled background on material.

Implementation

const PlatformDialogActionText({
  Key? key,
  required this.text,
  this.onPressed,
  this.isDestructiveAction = false,
  this.isDefaultAction = false,
}) : super(key: key);