copyWith method
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,
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,
);
}