set method

NikuButton set({
  1. VoidCallback? onPressed,
  2. VoidCallback? onLongPressed,
  3. FocusNode? focusNode,
  4. bool autofocus = false,
  5. Clip clipBehavior = Clip.none,
  6. NikuMaterialPropertyContainer<Color>? backgroundColor,
  7. NikuMaterialPropertyContainer<Color>? foregroundColor,
  8. NikuMaterialPropertyContainer<Color>? overlayColor,
  9. NikuMaterialPropertyContainer<Color>? shadowColor,
  10. NikuMaterialPropertyContainer<double>? elevation,
  11. double pt = 0,
  12. double pb = 0,
  13. double pl = 0,
  14. double pr = 0,
  15. double mt = 0,
  16. double mb = 0,
  17. double ml = 0,
  18. double mr = 0,
  19. NikuMaterialPropertyContainer<Size>? minimumSize,
  20. NikuMaterialPropertyContainer<BorderSide>? side,
  21. NikuMaterialPropertyContainer<RoundedRectangleBorder>? shape,
  22. NikuMaterialPropertyContainer<MouseCursor>? mouseCursor,
  23. VisualDensity? visualDensity,
  24. MaterialTapTargetSize? tapTargetSize,
  25. Duration? animationDuration,
  26. bool enableFeedback = false,
  27. AlignmentGeometry? alignment,
  28. Widget? label,
})

Implementation

NikuButton set({
  VoidCallback? onPressed,
  VoidCallback? onLongPressed,
  FocusNode? focusNode,
  bool autofocus = false,
  Clip clipBehavior = Clip.none,
  NikuMaterialPropertyContainer<Color>? backgroundColor,
  NikuMaterialPropertyContainer<Color>? foregroundColor,
  NikuMaterialPropertyContainer<Color>? overlayColor,
  NikuMaterialPropertyContainer<Color>? shadowColor,
  NikuMaterialPropertyContainer<double>? elevation,
  double pt = 0,
  double pb = 0,
  double pl = 0,
  double pr = 0,
  double mt = 0,
  double mb = 0,
  double ml = 0,
  double mr = 0,
  NikuMaterialPropertyContainer<Size>? minimumSize,
  NikuMaterialPropertyContainer<BorderSide>? side,
  NikuMaterialPropertyContainer<RoundedRectangleBorder>? shape,
  NikuMaterialPropertyContainer<MouseCursor>? mouseCursor,
  VisualDensity? visualDensity,
  MaterialTapTargetSize? tapTargetSize,
  Duration? animationDuration,
  bool enableFeedback = false,
  AlignmentGeometry? alignment,
  Widget? label,
}) {
  this._onPressed = onPressed;
  this._onLongPressed = onLongPressed;
  this._focusNode = focusNode;
  this._autofocus = autofocus;
  this._clipBehavior = clipBehavior;
  this._backgroundColor = backgroundColor ?? NikuMaterialPropertyContainer();
  this._foregroundColor = foregroundColor ?? NikuMaterialPropertyContainer();
  this._overlayColor = overlayColor ?? NikuMaterialPropertyContainer();
  this._shadowColor = shadowColor ?? NikuMaterialPropertyContainer();
  this._elevation = elevation ?? NikuMaterialPropertyContainer();
  this._pt = pt;
  this._pb = pb;
  this._pl = pl;
  this._pr = pr;
  this._mt = mt;
  this._mb = mb;
  this._ml = ml;
  this._mr = mr;
  this._minimumSize = minimumSize ?? NikuMaterialPropertyContainer();
  this._side = side ?? NikuMaterialPropertyContainer();
  this._shape = shape ?? NikuMaterialPropertyContainer();
  this._mouseCursor = mouseCursor ?? NikuMaterialPropertyContainer();
  this._visualDensity = visualDensity;
  this._tapTargetSize = tapTargetSize;
  this._animationDuration = animationDuration;
  this._enableFeedback = enableFeedback;
  this._alignment = alignment;
  this._label = label;

  return this;
}