copyWith method

BoxInfo copyWith({
  1. Offset? offset,
  2. double? width,
  3. double? height,
})

Implementation

BoxInfo copyWith({
  Offset? offset,
  double? width,
  double? height,
}) {
  return BoxInfo(
    offset: offset ?? this.offset,
    width: width ?? this.width,
    height: height ?? this.height,
  );
}