copyWith method

PollStyle copyWith({
  1. StyleVariant? variant,
  2. EdgeInsets? margin,
  3. EdgeInsets? padding,
  4. Decoration? decoration,
  5. TextStyle? optionTextStyle,
  6. OutlinedBorder? optionShape,
  7. Color? progressBarColor,
  8. double? progressBarHeight,
  9. 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,
  );
}