Shape class sealed
A base class representing various shapes for rendering particles.
This sealed class defines different shapes that can be used for rendering particles. It provides a method to compute the transformation parameters required for rendering particles using the specified shape.
Each shape must override the computeTransformation method to calculate the necessary transformation based on the particle's properties and the shape's specifications.
- Implementers
Constructors
- Shape()
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
-
computeTransformation(
Particle particle, Image defaultShapes) → (Image, Rect, RSTransform, Color) - Computes the transformation parameters for rendering particles using this shape.
-
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
Constants
- defaultSpriteHeight → const double
- defaultSpriteWidth → const double