copyWith method
OutlinedContainerTheme
copyWith({
- ValueGetter<
Color?> ? backgroundColor, - ValueGetter<
Color?> ? borderColor, - ValueGetter<
BorderRadiusGeometry?> ? borderRadius, - ValueGetter<
BorderStyle?> ? borderStyle, - ValueGetter<
double?> ? borderWidth, - ValueGetter<
List< ? boxShadow,BoxShadow> ?> - ValueGetter<
EdgeInsetsGeometry?> ? padding, - ValueGetter<
double?> ? surfaceOpacity, - ValueGetter<
double?> ? surfaceBlur,
Implementation
OutlinedContainerTheme copyWith({
ValueGetter<Color?>? backgroundColor,
ValueGetter<Color?>? borderColor,
ValueGetter<BorderRadiusGeometry?>? borderRadius,
ValueGetter<BorderStyle?>? borderStyle,
ValueGetter<double?>? borderWidth,
ValueGetter<List<BoxShadow>?>? boxShadow,
ValueGetter<EdgeInsetsGeometry?>? padding,
ValueGetter<double?>? surfaceOpacity,
ValueGetter<double?>? surfaceBlur,
}) {
return OutlinedContainerTheme(
backgroundColor:
backgroundColor == null ? this.backgroundColor : backgroundColor(),
borderColor: borderColor == null ? this.borderColor : borderColor(),
borderRadius: borderRadius == null ? this.borderRadius : borderRadius(),
borderStyle: borderStyle == null ? this.borderStyle : borderStyle(),
borderWidth: borderWidth == null ? this.borderWidth : borderWidth(),
boxShadow: boxShadow == null ? this.boxShadow : boxShadow(),
padding: padding == null ? this.padding : padding(),
surfaceOpacity:
surfaceOpacity == null ? this.surfaceOpacity : surfaceOpacity(),
surfaceBlur: surfaceBlur == null ? this.surfaceBlur : surfaceBlur(),
);
}