copyWith method

ScreenSize copyWith({
  1. int? width,
  2. int? height,
})

Implementation

ScreenSize copyWith({
  int? width,
  int? height
}) {
  return ScreenSize(
    width: width ?? this.width,
    height: height ?? this.height
  );
}