copyWith method

TajweedMenuStyle copyWith({
  1. double? width,
  2. double? height,
  3. EdgeInsetsGeometry? containerPadding,
  4. Color? backgroundColor,
  5. double? borderRadius,
  6. EdgeInsetsGeometry? headerPadding,
  7. String? headerTitle,
  8. Color? headerTitleColor,
  9. Color? headerCloseIconColor,
  10. Gradient? headerBackgroundGradient,
  11. EdgeInsetsGeometry? listMargin,
  12. EdgeInsets? listPadding,
  13. double? listBorderRadius,
  14. EdgeInsetsGeometry? itemMargin,
  15. EdgeInsetsGeometry? itemPadding,
  16. double? itemBorderRadius,
  17. Color? itemBorderColor,
  18. double? itemBorderWidth,
  19. double? itemGradientOpacity,
  20. double? swatchSize,
  21. double? swatchBorderRadius,
  22. TextStyle? itemTextStyle,
})

Implementation

TajweedMenuStyle copyWith({
  double? width,
  double? height,
  EdgeInsetsGeometry? containerPadding,
  Color? backgroundColor,
  double? borderRadius,
  EdgeInsetsGeometry? headerPadding,
  String? headerTitle,
  Color? headerTitleColor,
  Color? headerCloseIconColor,
  Gradient? headerBackgroundGradient,
  EdgeInsetsGeometry? listMargin,
  EdgeInsets? listPadding,
  double? listBorderRadius,
  EdgeInsetsGeometry? itemMargin,
  EdgeInsetsGeometry? itemPadding,
  double? itemBorderRadius,
  Color? itemBorderColor,
  double? itemBorderWidth,
  double? itemGradientOpacity,
  double? swatchSize,
  double? swatchBorderRadius,
  TextStyle? itemTextStyle,
}) {
  return TajweedMenuStyle(
    width: width ?? this.width,
    height: height ?? this.height,
    containerPadding: containerPadding ?? this.containerPadding,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderRadius: borderRadius ?? this.borderRadius,
    headerPadding: headerPadding ?? this.headerPadding,
    headerTitle: headerTitle ?? this.headerTitle,
    headerTitleColor: headerTitleColor ?? this.headerTitleColor,
    headerCloseIconColor: headerCloseIconColor ?? this.headerCloseIconColor,
    headerBackgroundGradient:
        headerBackgroundGradient ?? this.headerBackgroundGradient,
    listMargin: listMargin ?? this.listMargin,
    listPadding: listPadding ?? this.listPadding,
    listBorderRadius: listBorderRadius ?? this.listBorderRadius,
    itemMargin: itemMargin ?? this.itemMargin,
    itemPadding: itemPadding ?? this.itemPadding,
    itemBorderRadius: itemBorderRadius ?? this.itemBorderRadius,
    itemBorderColor: itemBorderColor ?? this.itemBorderColor,
    itemBorderWidth: itemBorderWidth ?? this.itemBorderWidth,
    itemGradientOpacity: itemGradientOpacity ?? this.itemGradientOpacity,
    swatchSize: swatchSize ?? this.swatchSize,
    swatchBorderRadius: swatchBorderRadius ?? this.swatchBorderRadius,
    itemTextStyle: itemTextStyle ?? this.itemTextStyle,
  );
}