CPDFShapeAttr class
PDF Shape annotation attribute model.
Includes fill and border color, transparency, border thickness and style.
- Inheritance
-
- Object
- CPDFAnnotAttrBase
- CPDFShapeAttr
- Implementers
Constructors
- CPDFShapeAttr({Color fillColor = const Color(0xFF1460F3), Color borderColor = Colors.black, double colorAlpha = 128, double borderWidth = 2, CPDFBorderStyle? borderStyle = const CPDFBorderStyle.solid()})
-
const
Properties
- borderColor → Color
-
The color of the border.
final
- borderStyle → CPDFBorderStyle?
-
Set the border style to dashed or solid.
final
- borderWidth → double
-
border thickness, value range:1~10
final
- colorAlpha → double
-
Fill color and border color transparency.
Range: 0-255.final - fillColor → Color
-
The fill color of the shape.
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
Static Methods
-
fromJson(
Map< String, dynamic> json) → CPDFShapeAttr - Creates a CPDFShapeAttr instance from a JSON map. example: