PaintUtils class

Utility functions for paint operations.

This class provides common functionality for creating and manipulating paint objects used throughout the package.

Constructors

PaintUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

blendColors(Color color1, Color color2, double factor) Color
Blends two colors with the given factor.
createGradientPaint({required Gradient gradient, required Rect bounds, PaintingStyle style = PaintingStyle.fill, double? strokeWidth}) Paint
Creates a paint object with a gradient shader.
createPaint({required Color color, PaintingStyle style = PaintingStyle.fill, double? strokeWidth}) Paint
Creates a paint object with the given color and style.
createShadowPaint({required Color color, required Offset offset, required double blurRadius}) Paint
Creates a paint object with a shadow effect.
withAlpha(Color color, double alpha) Color
Creates a color with the given alpha value.