copyWith method

ZeroButtonGroupStyle copyWith({
  1. Color? activeColor,
  2. Color? inactiveColor,
  3. Color? activeBorderColor,
  4. Color? inactiveBorderColor,
  5. TextStyle? activeTextStyle,
  6. TextStyle? inactiveTextStyle,
  7. EdgeInsetsGeometry? padding,
})

Copy the current instance with the new value given

Implementation

ZeroButtonGroupStyle copyWith({
  Color? activeColor,
  Color? inactiveColor,
  Color? activeBorderColor,
  Color? inactiveBorderColor,
  TextStyle? activeTextStyle,
  TextStyle? inactiveTextStyle,
  EdgeInsetsGeometry? padding,
}) {
  return ZeroButtonGroupStyle(
    activeColor: activeColor ?? this.activeColor,
    inactiveColor: inactiveColor ?? this.inactiveColor,
    activeBorderColor: activeBorderColor ?? this.activeBorderColor,
    inactiveBorderColor: inactiveBorderColor ?? this.inactiveBorderColor,
    activeTextStyle: activeTextStyle ?? this.activeTextStyle,
    inactiveTextStyle: inactiveTextStyle ?? this.inactiveTextStyle,
    padding: padding ?? this.padding,
  );
}