PlatformFilledButtonIcon constructor

const PlatformFilledButtonIcon({
  1. Key? key,
  2. Key? widgetKey,
  3. required void onPressed(),
  4. required Widget icon,
  5. void onLongPress()?,
  6. required Widget label,
  7. bool? autofocus,
  8. ButtonStyle? style,
  9. FocusNode? focusNode,
  10. Clip? clipBehavior,
  11. Color? backgroundColor,
})

Important: onLongPress, autofocus, focusNode and clip behavior are not supported for cupertino

Implementation

const PlatformFilledButtonIcon({
  Key? key,
  this.widgetKey,
  required this.onPressed,
  required this.icon,
  this.onLongPress,
  required this.label,
  this.autofocus,
  this.style,
  this.focusNode,
  this.clipBehavior,
  this.backgroundColor,
}) : super(key: key);