CPDFAnnotation class annotations
Base annotation model.
This model describes the common properties shared by all PDF annotations. Concrete annotation types (e.g. ink, highlight, stamp) extend this class to provide type-specific fields.
Key properties:
- type: The annotation type.
- title: The annotation title/subject.
- page: The page index where the annotation is located.
- content: The annotation content.
- uuid: The unique identifier of this annotation.
- createDate: The creation time, if available.
- rect: The annotation bounds in page coordinates.
Serialization:
- Use CPDFAnnotation.fromJson to parse common fields from a JSON map.
- Use toJson to convert this instance to a JSON map.
For polymorphic parsing into concrete subclasses, use CPDFAnnotationRegistry.fromJson.
Constructors
- CPDFAnnotation({required CPDFAnnotationType type, String title = "", required int page, String content = "", required String uuid, DateTime? createDate, required CPDFRectF rect})
-
CPDFAnnotation.fromJson(Map<
String, dynamic> json) -
factory
Properties
- content ↔ String
-
getter/setter pair
- createDate → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- page → int
-
final
- rect → CPDFRectF
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title ↔ String
-
getter/setter pair
- type → CPDFAnnotationType
-
final
- uuid → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited