CPDFTextWidget class forms
Text field form widget.
A text input form field that extends CPDFWidget.
Key properties:
- text: Current text value.
- alignment: Text alignment.
- isMultiline: Whether multiple lines are allowed.
- Text appearance: fontColor, fontSize, familyName, styleName.
Serialization:
- Use CPDFTextWidget.fromJson to create an instance from a JSON map.
- Use toJson to convert this instance to a JSON map.
- Inheritance
-
- Object
- CPDFWidget
- CPDFTextWidget
Constructors
- CPDFTextWidget({required String title, required int page, required CPDFRectF rect, required Color borderColor, required Color fillColor, String uuid = '', DateTime? createDate, double borderWidth = 2.0, String text = '', Color fontColor = Colors.black, double fontSize = 20, CPDFAlignment alignment = CPDFAlignment.left, bool isMultiline = true, String familyName = 'Helvetica', String styleName = 'Regular'})
-
CPDFTextWidget.fromJson(Map<
String, dynamic> json) -
factory
Properties
- alignment ↔ CPDFAlignment
-
getter/setter pair
- borderColor ↔ Color
-
getter/setter pairinherited
- borderWidth ↔ double
-
getter/setter pairinherited
- createDate → DateTime?
-
finalinherited
- familyName ↔ String
-
getter/setter pair
- fillColor ↔ Color
-
getter/setter pairinherited
- fontColor ↔ Color
-
getter/setter pair
- fontSize ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMultiline ↔ bool
-
getter/setter pair
- page → int
-
finalinherited
- rect → CPDFRectF
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- styleName ↔ String
-
getter/setter pair
- text ↔ String
-
getter/setter pair
- title ↔ String
-
getter/setter pairinherited
- type → CPDFFormType
-
finalinherited
- uuid → String
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited