MButton.icon constructor

MButton.icon({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. VoidCallback? onLongPress,
  4. ValueChanged<bool>? onHover,
  5. ValueChanged<bool>? onFocusChange,
  6. ButtonStyle? style,
  7. FocusNode? focusNode,
  8. bool? autofocus,
  9. Clip? clipBehavior,
  10. MaterialStatesController? statesController,
  11. required Widget icon,
  12. Widget label,
  13. MButtonIconAlignment? alignment,
  14. Color? backgroundColor,
  15. BorderRadius? borderRadius,
  16. bool clearPadding,
  17. Color? disabledColor,
  18. double? elevation,
  19. Size? fixedSize,
  20. Color? foregroundColor,
  21. Size? maximumSize,
  22. Size? minimumSize,
  23. bool noHighlight,
  24. bool noSplash,
  25. Color? overlayColor,
  26. EdgeInsetsGeometry? padding,
  27. double? radius,
  28. Color? shadowColor,
  29. OutlinedBorder? shape,
  30. BorderSide? side,
  31. InteractiveInkFeatureFactory? splashFactory,
  32. MaterialTapTargetSize? tapTargetSize,
  33. TextStyle? textStyle,
  34. double? width,
  35. double? height,
  36. double? size,
  37. double? space,
})

Implementation

factory MButton.icon({
  Key? key,
  VoidCallback? onPressed,
  VoidCallback? onLongPress,
  ValueChanged<bool>? onHover,
  ValueChanged<bool>? onFocusChange,
  ButtonStyle? style,
  FocusNode? focusNode,
  bool? autofocus,
  Clip? clipBehavior,
  MaterialStatesController? statesController,
  required Widget icon,
  Widget label,
  MButtonIconAlignment? alignment,
  Color? backgroundColor,
  BorderRadius? borderRadius,
  bool clearPadding,
  Color? disabledColor,
  double? elevation,
  Size? fixedSize,
  Color? foregroundColor,
  Size? maximumSize,
  Size? minimumSize,
  bool noHighlight,
  bool noSplash,
  Color? overlayColor,
  EdgeInsetsGeometry? padding,
  double? radius,
  Color? shadowColor,
  OutlinedBorder? shape,
  BorderSide? side,
  InteractiveInkFeatureFactory? splashFactory,
  MaterialTapTargetSize? tapTargetSize,
  TextStyle? textStyle,
  double? width,
  double? height,
  double? size,
  double? space,
}) = _MButtonWithIcon;