InspectorButton.filled constructor

const InspectorButton.filled({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required String semanticLabel,
  4. required IconData icon,
  5. GlobalKey<State<StatefulWidget>>? buttonKey,
})

Creates an inspector button with the InspectorButtonVariant.filled style.

This button typically has a solid background color and a contrasting icon.

Implementation

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