set method
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,
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;
}