copyWithBounds method

  1. @override
AnnotationSpatialItem copyWithBounds(
  1. Rect newBounds
)
override

Creates a copy with updated bounds.

Implementation

@override
AnnotationSpatialItem copyWithBounds(Rect newBounds) =>
    AnnotationSpatialItem(annotationId: annotationId, bounds: newBounds);