copyWith method

ZeroBottomSheetStyle copyWith({
  1. Color? backgroundColor,
  2. Color? handleColor,
  3. Color? barierColor,
  4. BorderRadiusGeometry? borderRadius,
  5. bool? useHandle,
  6. double? elevation,
})

If the caller passes in a value for a parameter, use that value, otherwise use the value from this object.

A new instance of ZeroBottomSheetStyle with the same properties as the original instance, except for the properties that are explicitly overridden.

Implementation

ZeroBottomSheetStyle copyWith({
  Color? backgroundColor,
  Color? handleColor,
  Color? barierColor,
  BorderRadiusGeometry? borderRadius,
  bool? useHandle,
  double? elevation,
}) {
  return ZeroBottomSheetStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    handleColor: handleColor ?? this.handleColor,
    barierColor: barierColor ?? this.barierColor,
    borderRadius: borderRadius ?? this.borderRadius,
    useHandle: useHandle ?? this.useHandle,
    elevation: elevation ?? this.elevation,
  );
}