CPDFMarkupAttr class
Represents the attributes for markup annotations in a PDF document. This class extends CPDFAnnotAttrBase and includes properties for the color and transparency of the markup annotation. The color property defines the color of the markup annotation, while the alpha property defines its transparency level.
- Inheritance
-
- Object
- CPDFAnnotAttrBase
- CPDFMarkupAttr
- Implementers
Constructors
- CPDFMarkupAttr({Color color = const Color(0xFF1460F3), double alpha = 77})
-
const
-
CPDFMarkupAttr.fromJson(Map<
String, dynamic> json) -
Creates a CPDFMarkupAttr instance from a JSON map.
The map should contain the keys 'color' and 'alpha'.
example:
factory
Properties
- alpha → double
-
Transparency of the color. Range: 0 (transparent) - 255 (opaque).
final
- color → Color
-
The color of the annotation. Defaults to blue (#1460F3).
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
-
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