copyWith method

OutlinedContainerTheme copyWith({
  1. ValueGetter<Color?>? backgroundColor,
  2. ValueGetter<Color?>? borderColor,
  3. ValueGetter<BorderRadiusGeometry?>? borderRadius,
  4. ValueGetter<BorderStyle?>? borderStyle,
  5. ValueGetter<double?>? borderWidth,
  6. ValueGetter<List<BoxShadow>?>? boxShadow,
  7. ValueGetter<EdgeInsetsGeometry?>? padding,
  8. ValueGetter<double?>? surfaceOpacity,
  9. 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(),
  );
}