CPDFWidget class forms
Base model for a PDF form field (widget).
This model describes the common properties for all PDF form widgets and is used as the base data structure when reading/writing form field information.
Key properties:
- type: The form field type.
- title: The field name/title.
- page: The page index where the widget is located.
- uuid: The unique identifier of this widget.
- createDate: The creation time, if available.
- rect: The widget bounds in page coordinates.
- borderColor/fillColor/borderWidth: Appearance settings.
Serialization:
- Use CPDFWidget.fromJson to create an instance from a JSON map.
- Use toJson to convert this instance to a JSON map.
Constructors
- CPDFWidget({required CPDFFormType type, required String title, required int page, required CPDFRectF rect, String uuid = '', DateTime? createDate, required Color borderColor, required Color fillColor, double borderWidth = 0})
-
CPDFWidget.fromJson(Map<
String, dynamic> json) -
factory
Properties
- borderColor ↔ Color
-
getter/setter pair
- borderWidth ↔ double
-
getter/setter pair
- createDate → DateTime?
-
final
- fillColor ↔ Color
-
getter/setter pair
- 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 → CPDFFormType
-
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