AnnotationPropertiesModification extension

Extension to add modification methods to AnnotationProperties. These methods create new instances with updated values, following an immutable pattern.

on

Methods

withBoundingBox(Rect bbox) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated bounding box.
withColor(Color color) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated stroke color.
withContents(String contents) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated contents.
withCreator(String creator) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated creator.
withCustomData(Map<String, Object?> customData) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated custom data.
withFillColor(Color color) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated fill color.
withFlags(Set<AnnotationFlag> flags) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated flags.
withLineWidth(double lineWidth) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated line width.
withNote(String note) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated note.
withOpacity(double opacity) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated opacity.
withSubject(String subject) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with updated subject.
withUpdates({Color? color, Color? fillColor, double? opacity, double? lineWidth, Set<AnnotationFlag>? flags, Map<String, Object?>? customData, String? contents, String? subject, String? creator, Rect? boundingBox, String? note}) → AnnotationProperties

Available on AnnotationProperties, provided by the AnnotationPropertiesModification extension

Creates a modified copy with multiple updates.