copyWith method
ViewDecoration
copyWith({
- ViewClickEffect? clickEffect,
- ImageFilter? backdropFilter,
- BlendMode? backdropMode,
- Color? borderColor,
- ValueState<
Color> ? borderColorState, - double? borderSize,
- ValueState<
double> ? borderSizeState, - double? borderHorizontal,
- dynamic borderVertical,
- ValueState<
double> ? borderHorizontalState, - dynamic borderVerticalState,
- double? borderTop,
- dynamic borderBottom,
- dynamic borderStart,
- dynamic borderEnd,
- ValueState<
double> ? borderTopState, - dynamic borderBottomState,
- ValueState<
double> ? borderStartState, - dynamic borderEndState,
- double? borderStrokeAlign,
- double? borderRadius,
- ValueState<
double> ? borderRadiusState, - double? borderRadiusBL,
- dynamic borderRadiusBR,
- dynamic borderRadiusTL,
- dynamic borderRadiusTR,
- ValueState<
double> ? borderRadiusBLState, - dynamic borderRadiusBRState,
- ValueState<
double> ? borderRadiusTLState, - dynamic borderRadiusTRState,
- double? margin,
- double? marginHorizontal,
- dynamic marginVertical,
- double? marginTop,
- dynamic marginBottom,
- dynamic marginStart,
- dynamic marginEnd,
- EdgeInsets? marginCustom,
- double? opacity,
- ValueState<
double> ? opacityState, - bool? opacityAlwaysIncludeSemantics,
- double? padding,
- double? paddingHorizontal,
- dynamic paddingVertical,
- double? paddingTop,
- dynamic paddingBottom,
- dynamic paddingStart,
- dynamic paddingEnd,
- EdgeInsets? paddingCustom,
- double? shadow,
- double? shadowBlurRadius,
- dynamic shadowSpreadRadius,
- double? shadowHorizontal,
- dynamic shadowVertical,
- double? shadowStart,
- dynamic shadowEnd,
- dynamic shadowTop,
- dynamic shadowBottom,
Implementation
ViewDecoration copyWith({
ViewClickEffect? clickEffect,
/// BACKDROP PROPERTIES
ImageFilter? backdropFilter,
BlendMode? backdropMode,
/// BORDER PROPERTIES
Color? borderColor,
ValueState<Color>? borderColorState,
double? borderSize,
ValueState<double>? borderSizeState,
double? borderHorizontal,
borderVertical,
ValueState<double>? borderHorizontalState,
borderVerticalState,
double? borderTop,
borderBottom,
borderStart,
borderEnd,
ValueState<double>? borderTopState,
borderBottomState,
ValueState<double>? borderStartState,
borderEndState,
double? borderStrokeAlign,
/// BORDER RADIUS PROPERTIES
double? borderRadius,
ValueState<double>? borderRadiusState,
double? borderRadiusBL,
borderRadiusBR,
borderRadiusTL,
borderRadiusTR,
ValueState<double>? borderRadiusBLState,
borderRadiusBRState,
ValueState<double>? borderRadiusTLState,
borderRadiusTRState,
/// MARGIN PROPERTIES
double? margin,
double? marginHorizontal,
marginVertical,
double? marginTop,
marginBottom,
marginStart,
marginEnd,
EdgeInsets? marginCustom,
/// OPACITY PROPERTIES
double? opacity,
ValueState<double>? opacityState,
bool? opacityAlwaysIncludeSemantics,
/// PADDING PROPERTIES
double? padding,
double? paddingHorizontal,
paddingVertical,
double? paddingTop,
paddingBottom,
paddingStart,
paddingEnd,
EdgeInsets? paddingCustom,
/// SHADOW PROPERTIES
double? shadow,
double? shadowBlurRadius,
shadowSpreadRadius,
double? shadowHorizontal,
shadowVertical,
double? shadowStart,
shadowEnd,
shadowTop,
shadowBottom,
}) {
return ViewDecoration(
clickEffect: clickEffect ?? this.clickEffect,
backdropFilter: backdropFilter ?? this.backdropFilter,
backdropMode: backdropMode ?? this.backdropMode,
borderColor: borderColor ?? this.borderColor,
borderColorState: borderColorState ?? this.borderColorState,
borderSize: borderSize ?? this.borderSize,
borderSizeState: borderSizeState ?? this.borderSizeState,
borderHorizontal: borderHorizontal ?? this.borderHorizontal,
borderVertical: borderVertical ?? this.borderVertical,
borderHorizontalState:
borderHorizontalState ?? this.borderHorizontalState,
borderVerticalState: borderVerticalState ?? this.borderVerticalState,
borderTop: borderTop ?? this.borderTop,
borderBottom: borderBottom ?? this.borderBottom,
borderStart: borderStart ?? this.borderStart,
borderEnd: borderEnd ?? this.borderEnd,
borderTopState: borderTopState ?? this.borderTopState,
borderBottomState: borderBottomState ?? this.borderBottomState,
borderStartState: borderStartState ?? this.borderStartState,
borderEndState: borderEndState ?? this.borderEndState,
borderStrokeAlign: borderStrokeAlign ?? this.borderStrokeAlign,
borderRadius: borderRadius ?? this.borderRadius,
borderRadiusState: borderRadiusState ?? this.borderRadiusState,
borderRadiusBL: borderRadiusBL ?? this.borderRadiusBL,
borderRadiusBR: borderRadiusBR ?? this.borderRadiusBR,
borderRadiusTL: borderRadiusTL ?? this.borderRadiusTL,
borderRadiusTR: borderRadiusTR ?? this.borderRadiusTR,
borderRadiusBLState: borderRadiusBLState ?? this.borderRadiusBLState,
borderRadiusBRState: borderRadiusBRState ?? this.borderRadiusBRState,
borderRadiusTLState: borderRadiusTLState ?? this.borderRadiusTLState,
borderRadiusTRState: borderRadiusTRState ?? this.borderRadiusTRState,
margin: margin ?? this.margin,
marginHorizontal: marginHorizontal ?? this.marginHorizontal,
marginVertical: marginVertical ?? this.marginVertical,
marginTop: marginTop ?? this.marginTop,
marginBottom: marginBottom ?? this.marginBottom,
marginStart: marginStart ?? this.marginStart,
marginEnd: marginEnd ?? this.marginEnd,
marginCustom: marginCustom ?? this.marginCustom,
opacity: opacity ?? this.opacity,
opacityState: opacityState ?? this.opacityState,
opacityAlwaysIncludeSemantics:
opacityAlwaysIncludeSemantics ?? this.opacityAlwaysIncludeSemantics,
padding: padding ?? this.padding,
paddingHorizontal: paddingHorizontal ?? this.paddingHorizontal,
paddingVertical: paddingVertical ?? this.paddingVertical,
paddingTop: paddingTop ?? this.paddingTop,
paddingBottom: paddingBottom ?? this.paddingBottom,
paddingStart: paddingStart ?? this.paddingStart,
paddingEnd: paddingEnd ?? this.paddingEnd,
paddingCustom: paddingCustom ?? this.paddingCustom,
shadow: shadow ?? this.shadow,
shadowBlurRadius: shadowBlurRadius ?? this.shadowBlurRadius,
shadowSpreadRadius: shadowSpreadRadius ?? this.shadowSpreadRadius,
shadowHorizontal: shadowHorizontal ?? this.shadowHorizontal,
shadowVertical: shadowVertical ?? this.shadowVertical,
shadowStart: shadowStart ?? this.shadowStart,
shadowEnd: shadowEnd ?? this.shadowEnd,
shadowTop: shadowTop ?? this.shadowTop,
shadowBottom: shadowBottom ?? this.shadowBottom,
);
}