CPDFTextAttr class

Represents the attributes for text annotations in a PDF document. This class extends CPDFAnnotAttrBase and includes properties for the color and transparency of the text annotation. The color property defines the color of the text annotation, while the alpha property defines its transparency level.

Inheritance

Constructors

CPDFTextAttr({Color color = const Color(0xFF1460F3), double alpha = 255})
const
CPDFTextAttr.fromJson(Map<String, dynamic> json)
Creates a CPDFTextAttr instance from a JSON map. example:
factory

Properties

alpha double
Color transparency.
Value Range:0-255.
final
color Color
note icon color
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
no setteroverride

Methods

copyWith({Color? color, double? alpha}) CPDFTextAttr
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