copyWith method

OptionalSize copyWith({
  1. double? width,
  2. double? height,
})

Implementation

OptionalSize copyWith({
  double? width,
  double? height,
}) {
  return OptionalSize(
    width ?? this.width,
    height ?? this.height,
  );
}