WatermarkStyle class
Immutable configuration for the watermark overlay appearance.
Controls visual properties such as opacity, rotation angle, text color, font size, spacing, and whether alternate rows are staggered (brick pattern).
Constructors
- WatermarkStyle({double opacity = 0.15, double rotate = -30, Color textColor = const Color(0xFF9E9E9E), double fontSize = 16, double rowSpacing = 80, double columnSpacing = 120, FontWeight fontWeight = FontWeight.normal, bool staggered = true})
-
Creates a watermark style configuration.
const
Properties
- columnSpacing → double
-
Horizontal spacing between watermark text columns in logical pixels.
final
- fontSize → double
-
Font size of the watermark text in logical pixels.
final
- fontWeight → FontWeight
-
Font weight of the watermark text.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- opacity → double
-
Opacity of the watermark text, from 0.0 (invisible) to 1.0 (fully opaque).
final
- rotate → double
-
Rotation angle in degrees. Negative values rotate counter-clockwise.
final
- rowSpacing → double
-
Vertical spacing between watermark text rows in logical pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staggered → bool
-
Whether alternate rows are offset by half columnSpacing to create
a brick pattern, making cropping more difficult.
final
- textColor → Color
-
Color of the watermark text (opacity is applied separately).
final
Methods
-
copyWith(
{double? opacity, double? rotate, Color? textColor, double? fontSize, double? rowSpacing, double? columnSpacing, FontWeight? fontWeight, bool? staggered}) → WatermarkStyle - Creates a copy of this style with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override