MetaballsRenderer class

The native metaballs rendering widget

Inheritance

Constructors

MetaballsRenderer({Key? key, required Size size, required double time, required Color color, required List<MetaBallComputedState> metaballs, required double pixelRatio, required double glowRadius, required double glowIntensity, required Duration animationDuration, Gradient? gradient})
const

Properties

animationDuration Duration
The duration of the color changing animation
final
color Color
The color of the metaballs
final
glowIntensity double
The brightness of the glow around the ball
final
glowRadius double
A multiplier to indicate the radius of the glow
final
gradient Gradient?
A gradient for coloring the metaballs, overwrites color
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
metaballs List<MetaBallComputedState>
A list with computed metaball states passed on to the shader
final
pixelRatio double
The device pixel ratio, only used on web to increase the resolution of the output on the canvas
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
Size of the rendering canvas
final
time double
Value that increments over time used as a random component in dithering
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MetaballsRenderer>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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