PlatformDialogAction<T> constructor

const PlatformDialogAction<T>({
  1. required T result(),
  2. VoidCallback? action,
  3. bool isDestructive = false,
  4. bool isDefault = false,
  5. String? text,
  6. Widget? child,
})

Implementation

const PlatformDialogAction({
  required this.result,
  this.action,
  this.isDestructive = false,
  this.isDefault = false,
  this.text,
  this.child,
}) : assert(text != null || child != null);