PenState class
class to store the current pen parameters.
penType store the enum with , , : PenType.pencil constant stroke width using strokeMinWidth PenType.paintbrush variable stroke width. Near strokeMinWidth when moving slowly, near strokeMaxWidth when moving fast. PenType.paintbrush2 variable stroke width. Near strokeMaxWidth when moving slowly, near strokeMinWidth when moving fast.| strokeColor pen color, default Colors.black strokeMinWidth Pen width when moving slowing, default 3 strokeMaxWidth Pen width when moving fast, default 10 blurSigma Blur stroke, default 0 blendMode Painting blending mode. See BlendMode, default BlendMode.srcOver
Constructors
- PenState()
Properties
- blendMode ↔ BlendMode
-
getter/setter pair
- blurSigma ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- penType ↔ PenType
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeColor ↔ Color
-
getter/setter pair
- strokeMaxWidth ↔ double
-
getter/setter pair
- strokeMinWidth ↔ double
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited