MButton.icon constructor
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,
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;