copyWith method

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

Copy with new values.

Implementation

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