copyWith method

RatingButtonThemeData copyWith({
  1. double? minWidth,
  2. double? height,
  3. TextStyle? activeTextStyle,
  4. TextStyle? inActiveTextStyle,
  5. Color? inActiveColor,
  6. Color? activeColor,
  7. Color? textColor,
  8. Color? highlightColor,
  9. Color? splashColor,
  10. ShapeBorder? shape,
  11. double? elevation,
  12. EdgeInsetsGeometry? padding,
  13. VisualDensity? visualDensity,
  14. double? spacing,
  15. double? runspacing,
  16. WrapAlignment? alignment,
  17. WrapCrossAlignment? crossAxisAlignment,
})

Implementation

RatingButtonThemeData copyWith({
  double? minWidth,
  double? height,
  TextStyle? activeTextStyle,
  TextStyle? inActiveTextStyle,
  Color? inActiveColor,
  Color? activeColor,
  Color? textColor,
  Color? highlightColor,
  Color? splashColor,
  ShapeBorder? shape,
  double? elevation,
  EdgeInsetsGeometry? padding,
  VisualDensity? visualDensity,
  double? spacing,
  double? runspacing,
  WrapAlignment? alignment,
  WrapCrossAlignment? crossAxisAlignment,
}) {
  return RatingButtonThemeData(
    activeTextStyle: activeTextStyle ?? this.activeTextStyle,
    minWidth: minWidth ?? this.minWidth,
    activeColor: activeColor ?? this.activeColor,
    elevation: elevation ?? this.elevation,
    height: height ?? this.height,
    highlightColor: highlightColor ?? this.highlightColor,
    inActiveColor: inActiveColor ?? this.inActiveColor,
    padding: padding ?? this.padding,
    shape: shape ?? this.shape,
    splashColor: splashColor ?? this.splashColor,
    inActiveTextStyle: inActiveTextStyle ?? this.inActiveTextStyle,
    visualDensity: visualDensity ?? this.visualDensity,
    alignment: alignment ?? this.alignment,
    crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
    runSpacing: runSpacing,
    spacing: spacing ?? this.spacing,
  );
}