DevToolsButton constructor
const
DevToolsButton({
- Key? key,
- required VoidCallback? onPressed,
- IconData? icon,
- String? label,
- String? tooltip,
- Color? color,
- double? minScreenWidthForTextBeforeScaling,
- bool elevated = false,
- bool outlined = true,
- 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.',
);