GradientProxyPainter class Capture control

A stub of one gradient. Keeps a local mean where a flat colour would not — which is the axis a blur cannot restore: a low-pass removes what is above its cutoff and cannot bring back a mean that is no longer there.

Never reported opaque, whatever the gradient's stops are.

Inheritance

Constructors

GradientProxyPainter(Gradient gradient)
A stub that fills the subtree's box with gradient.
const

Properties

gradient → Gradient
The fill, stretched over the subtree's box. A change repaints the proxy.
final
hashCode → int
The hash code for this object.
no setterinherited
isOpaque → bool
Whether paint covers the whole of size opaquely.
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
paint(Canvas canvas, Size size) → void
Paints the stand-in. Local space: the subtree's origin is Offset.zero, exactly as in CustomPainter.
override
shouldRepaint(covariant GradientProxyPainter oldPainter) → bool
Whether the proxy has to be re-recorded because this painter replaced oldPainter.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited