NikuButtonStyle constructor

NikuButtonStyle({
  1. NikuState<NikuTextStyle?>? textStyleState,
  2. NikuState<Color?>? backgroundColorState,
  3. NikuState<Color?>? foregroundColorState,
  4. NikuState<Color?>? overlayColorState,
  5. NikuState<Color?>? shadowColorState,
  6. NikuState<double?>? elevationState,
  7. NikuState<EdgeInsets?>? paddingState,
  8. NikuState<Size?>? minimumSizeState,
  9. NikuState<Size?>? fixedSizeState,
  10. NikuState<Size?>? maximumSizeState,
  11. NikuState<BorderSide?>? sideState,
  12. NikuState<OutlinedBorder?>? shapeState,
  13. NikuState<MouseCursor?>? mouseCursorState,
  14. VisualDensity? visualDensity,
  15. MaterialTapTargetSize? tapTargetSize,
  16. Duration? animationDuration,
  17. bool? enableFeedback,
  18. AlignmentGeometry? alignment,
  19. InteractiveInkFeatureFactory? splashFactory,
  20. NikuTextStyle? textStyle,
  21. Color? backgroundColor,
  22. Color? foregroundColor,
  23. Color? overlayColor,
  24. Color? shadowColor,
  25. double? elevation,
  26. EdgeInsets? padding,
  27. Size? minimumSize,
  28. Size? fixedSize,
  29. Size? maximumSize,
  30. BorderSide? side,
  31. OutlinedBorder? shape,
  32. MouseCursor? mouseCursor,
})

Implementation

NikuButtonStyle({
  this.textStyleState,
  this.backgroundColorState,
  this.foregroundColorState,
  this.overlayColorState,
  this.shadowColorState,
  this.elevationState,
  this.paddingState,
  this.minimumSizeState,
  this.fixedSizeState,
  this.maximumSizeState,
  this.sideState,
  this.shapeState,
  this.mouseCursorState,
  this.visualDensity,
  this.tapTargetSize,
  this.animationDuration,
  this.enableFeedback,
  this.alignment,
  this.splashFactory,
  NikuTextStyle? textStyle,
  Color? backgroundColor,
  Color? foregroundColor,
  Color? overlayColor,
  Color? shadowColor,
  double? elevation,
  EdgeInsets? padding,
  Size? minimumSize,
  Size? fixedSize,
  Size? maximumSize,
  BorderSide? side,
  OutlinedBorder? shape,
  MouseCursor? mouseCursor,
}) {
  if (textStyle != null) textStyleState = NikuState.all(textStyle);
  if (backgroundColor != null)
    backgroundColorState = NikuState.all(backgroundColor);
  if (foregroundColor != null)
    foregroundColorState = NikuState.all(foregroundColor);
  if (overlayColor != null) overlayColorState = NikuState.all(overlayColor);
  if (shadowColor != null) shadowColorState = NikuState.all(shadowColor);
  if (elevation != null) elevationState = NikuState.all(elevation);
  if (padding != null) paddingState = NikuState.all(padding);
  if (minimumSize != null) minimumSizeState = NikuState.all(minimumSize);
  if (fixedSize != null) fixedSizeState = NikuState.all(fixedSize);
  if (maximumSize != null) maximumSizeState = NikuState.all(maximumSize);
  if (side != null) sideState = NikuState.all(side);
  if (shape != null) shapeState = NikuState.all(shape);
  if (mouseCursor != null) mouseCursorState = NikuState.all(mouseCursor);
}