AdaptiveIconButton constructor

const AdaptiveIconButton({
  1. Key? key,
  2. CoreAdaptiveBuilder<Builder<ThemeData, CoreAndroidProperty?>, Builder<CupertinoThemeData, CoreIOSProperty?>>? builders,
  3. VoidCallback? onPressed,
  4. Color? color,
  5. Color? hoverColor,
  6. BorderRadius? borderRadius,
  7. Color? disabledColor,
  8. MouseCursor mouseCursor = MouseCursor.defer,
  9. BoxConstraints constraints = _kAdpIconConstraints,
  10. required Widget icon,
})

Creates an instance of AdaptiveIconButton.

The icon is required and it specifies the widget to be used as the icon, typically an AdaptiveIcon widget.

Implementation

const AdaptiveIconButton({
  super.key,
  super.builders,
  this.onPressed,
  this.color,
  this.hoverColor,
  this.borderRadius,
  this.disabledColor,
  this.mouseCursor = MouseCursor.defer,
  this.constraints = _kAdpIconConstraints,
  required this.icon,
}) : label = null;