DevToolsButton constructor

const DevToolsButton({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. IconData? icon,
  4. String? label,
  5. String? tooltip,
  6. Color? color,
  7. double? minScreenWidthForTextBeforeScaling,
  8. bool elevated = false,
  9. bool outlined = true,
  10. EdgeInsetsGeometry? tooltipPadding,
})

Implementation

const DevToolsButton({
  super.key,
  required this.onPressed,
  this.icon,
  this.label,
  this.tooltip,
  this.color,
  this.minScreenWidthForTextBeforeScaling,
  this.elevated = false,
  this.outlined = true,
  this.tooltipPadding,
}) : assert(
        label != null || icon != null,
        'Either icon or label must be specified.',
      );