copyWith method
PollStyle
copyWith({
- StyleVariant? variant,
- EdgeInsets? margin,
- EdgeInsets? padding,
- Decoration? decoration,
- TextStyle? optionTextStyle,
- OutlinedBorder? optionShape,
- Color? progressBarColor,
- double? progressBarHeight,
- BorderRadius? containerRadius,
Implementation
PollStyle copyWith({
StyleVariant? variant,
EdgeInsets? margin,
EdgeInsets? padding,
Decoration? decoration,
TextStyle? optionTextStyle,
OutlinedBorder? optionShape,
Color? progressBarColor,
double? progressBarHeight,
BorderRadius? containerRadius,
}) {
return PollStyle(
variant: variant ?? this.variant,
margin: margin ?? this.margin,
padding: padding ?? this.padding,
decoration: decoration ?? this.decoration,
optionTextStyle: optionTextStyle ?? this.optionTextStyle,
optionShape: optionShape ?? this.optionShape,
progressBarColor: progressBarColor ?? this.progressBarColor,
progressBarHeight: progressBarHeight ?? this.progressBarHeight,
containerRadius: containerRadius ?? this.containerRadius,
);
}