InspectorButton.iconOnly constructor

const InspectorButton.iconOnly({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required String semanticLabel,
  4. required IconData icon,
})

Creates an inspector button with the InspectorButtonVariant.iconOnly style.

This button typically displays only an icon with a transparent background.

Implementation

const InspectorButton.iconOnly({
  super.key,
  required this.onPressed,
  required this.semanticLabel,
  required this.icon,
}) : buttonKey = null,
     variant = InspectorButtonVariant.iconOnly,
     toggledOn = null;