GiantToadPixelButton.compact constructor

const GiantToadPixelButton.compact({
  1. required VoidCallback? onPressed,
  2. String? label,
  3. Widget? child,
  4. Key? key,
  5. bool autofocus = false,
  6. bool selected = false,
  7. String? semanticLabel,
  8. String? tooltip,
  9. FocusNode? focusNode,
  10. ValueChanged<bool>? onFocusChange,
  11. bool joinLeft = false,
  12. bool joinRight = false,
  13. bool squareCorners = false,
})

Implementation

const GiantToadPixelButton.compact({
  required this.onPressed,
  this.label,
  this.child,
  super.key,
  this.autofocus = false,
  this.selected = false,
  this.semanticLabel,
  this.tooltip,
  this.focusNode,
  this.onFocusChange,
  this.joinLeft = false,
  this.joinRight = false,
  this.squareCorners = false,
}) : compact = true,
     showDepth = false,
     assert(label != null || child != null);