copyWith method

  1. @override
VToggleStyle copyWith({
  1. Color? pressedSplashColor,
  2. dynamic selectedBorderColor,
  3. dynamic unselectedBorderColor,
  4. dynamic toggleFillColor,
  5. dynamic disabledBorderColor,
  6. dynamic bottomBarDisabledColor,
  7. dynamic bottomBarUnselectedColor,
  8. dynamic bottomBarColor,
  9. double? height,
  10. dynamic borderRadius,
  11. dynamic minimumWidth,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
VToggleStyle copyWith({
  Color? pressedSplashColor,
  selectedBorderColor,
  unselectedBorderColor,
  toggleFillColor,
  disabledBorderColor,
  bottomBarDisabledColor,
  bottomBarUnselectedColor,
  bottomBarColor,
  double? height,
  borderRadius,
  minimumWidth,
}) =>
    VToggleStyle(
      pressedSplashColor: pressedSplashColor ?? this.pressedSplashColor,
      selectedBorderColor: selectedBorderColor ?? this.selectedBorderColor,
      unselectedBorderColor:
          unselectedBorderColor ?? this.unselectedBorderColor,
      toggleFillColor: toggleFillColor ?? this.toggleFillColor,
      disabledBorderColor: disabledBorderColor ?? this.disabledBorderColor,
      bottomBarDisabledColor:
          bottomBarDisabledColor ?? this.bottomBarDisabledColor,
      bottomBarUnselectedColor:
          bottomBarUnselectedColor ?? this.bottomBarUnselectedColor,
      bottomBarColor: bottomBarColor ?? this.bottomBarColor,
      height: height ?? this.height,
      borderRadius: borderRadius ?? this.borderRadius,
      minimumWidth: minimumWidth ?? this.minimumWidth,
    );