AdaptiveAlertDialogButton constructor

AdaptiveAlertDialogButton(
  1. {@required Widget child,
  2. VoidCallback onPressed,
  3. bool closeOnPress = true,
  4. bool destructive = false}
)

Implementation

AdaptiveAlertDialogButton({
  @required this.child,
  this.onPressed,
  this.closeOnPress = true,
  this.destructive = false,
}) : assert(child != null,
          'Without a child, we cannot provide optical feedback :(');