FloatingAnimation class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FloatingAnimation
Constructors
-
FloatingAnimation({Key? key, int maxShapes = 50, double speedMultiplier = 1.0, double sizeMultiplier = 1.0, String selectedShape = 'circle', Map<
String, Color> shapeColors = const {'circle' : Colors.blue, 'rectangle' : Colors.green, 'heart' : Colors.red, 'triangle' : Colors.purple}, FloatingDirection direction = FloatingDirection.up, double spawnRate = 10.0, IconData? icon, Image? image, void customPaintMethod(Canvas, Offset, double, Paint)?, bool enableRotation = false, double rotationSpeedMultiplier = 1.0, bool enablePulse = false, double pulseSpeed = 2.0, double pulseAmplitude = 0.3, bool useDepthOpacity = true}) -
const
Properties
- customPaintMethod → void Function(Canvas, Offset, double, Paint)?
-
final
- direction → FloatingDirection
-
final
- enablePulse → bool
-
final
- enableRotation → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- image → Image?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxShapes → int
-
final
- pulseAmplitude → double
-
final
- pulseSpeed → double
-
final
- rotationSpeedMultiplier → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedShape → String
-
final
-
shapeColors
→ Map<
String, Color> -
final
- sizeMultiplier → double
-
final
- spawnRate → double
-
final
- speedMultiplier → double
-
final
- useDepthOpacity → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → FloatingAnimationState -
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, int wrapWidth = 65}) → 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