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