MOutlinedButton constructor

const MOutlinedButton({
  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 = false,
  9. Clip? clipBehavior = Clip.none,
  10. MaterialStatesController? statesController,
  11. required Widget? child,
  12. Color? backgroundColor,
  13. BorderRadius? borderRadius,
  14. bool clearPadding = false,
  15. Color? disabledColor,
  16. double? elevation,
  17. Size? fixedSize,
  18. Color? foregroundColor,
  19. Size? maximumSize,
  20. Size? minimumSize,
  21. bool noHighlight = false,
  22. bool noSplash = false,
  23. Color? overlayColor,
  24. EdgeInsetsGeometry? padding,
  25. double? radius,
  26. Color? shadowColor,
  27. OutlinedBorder? shape,
  28. BorderSide? side,
  29. InteractiveInkFeatureFactory? splashFactory,
  30. MaterialTapTargetSize? tapTargetSize,
  31. TextStyle? textStyle,
  32. double? width,
  33. double? height,
  34. double? size,
})

Implementation

const MOutlinedButton({
  super.key,
  super.onPressed,
  super.onLongPress,
  super.onHover,
  super.onFocusChange,
  super.style,
  super.focusNode,
  super.autofocus = false,
  super.clipBehavior = Clip.none,
  super.statesController,
  required super.child,
  this.backgroundColor,
  this.borderRadius,
  this.clearPadding = false,
  this.disabledColor,
  this.elevation,
  this.fixedSize,
  this.foregroundColor,
  this.maximumSize,
  this.minimumSize,
  this.noHighlight = false,
  this.noSplash = false,
  this.overlayColor,
  this.padding,
  this.radius,
  this.shadowColor,
  this.shape,
  this.side,
  this.splashFactory,
  this.tapTargetSize,
  this.textStyle,
  double? width,
  double? height,
  double? size,
})  : width = width ?? size,
      height = height ?? size,
      isSelected = null;