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.
  • isRequired: Whether the field is marked as required (read-only).

Serialization:

Implementers

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, bool isRequired = false})
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
isRequired → bool
Whether the form field is marked as required (PDF field flag Ff bit 2).
final
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