copyWith method

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

Implementation

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