copyWith method

PollStyle copyWith({
  1. EdgeInsets? margin,
  2. EdgeInsets? padding,
  3. Decoration? decoration,
  4. TextStyle? optionTextStyle,
  5. OutlinedBorder? optionShape,
  6. Color? progressBarColor,
})

Implementation

PollStyle copyWith({
  EdgeInsets? margin,
  EdgeInsets? padding,
  Decoration? decoration,
  TextStyle? optionTextStyle,
  OutlinedBorder? optionShape,
  Color? progressBarColor,
}) {
  return PollStyle(
    margin: margin ?? this.margin,
    padding: padding ?? this.padding,
    decoration: decoration ?? this.decoration,
    optionTextStyle: optionTextStyle ?? this.optionTextStyle,
    optionShape: optionShape ?? this.optionShape,
    progressBarColor: progressBarColor ?? this.progressBarColor,
  );
}