OMeshRectPaint class
A class that draws a OMeshRect into a Canvas.
Useful to render mesh gradients outside of widget contexts, such as custom paints, flame engine components, and render objects.
Constructors
- OMeshRectPaint({required OMeshShaderProvider shaderProvider, required OMeshRect meshRect, required int tessellation, required DebugMode? debugMode})
-
Creates a new OMeshRectPaint with the given
shaderProvider
andmeshRect
,
Properties
- debugMode ↔ DebugMode?
-
The enabled debug features.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- meshRect ↔ OMeshRect
-
The guiding mesh to be rendered.
getter/setter pair
- needsRepaint → bool
-
Whether the mesh needs to be repainted.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shaderProvider → OMeshShaderProvider
-
The shader provider instance associated with this paint.
final
- tessellation ↔ int
-
The tessellation level of the mesh.
getter/setter pair
Methods
-
markNeedsRepaint(
) → void - Marks the mesh as needing to be repainted.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, Rect rect) → void -
Paints the mesh into the given
canvas
andrect
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited