Shape class

Represents a drawable shape that can be rendered on a canvas.

Constructors

Shape({required double x, required double y, required double radius, required double speed, required double opacity, required double depth, String? shape, void paintMethod(Canvas, Offset, double, Paint)?, IconData? icon, Image? image, double rotation = 0.0, double angularSpeed = 0.0, double? baseOpacity, double pulsePhase = 0.0, double pulseFrequency = 0.0})

Properties

angularSpeed → double
final
baseOpacity → double
final
depth ↔ double
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
icon ↔ IconData?
getter/setter pair
image ↔ Image?
getter/setter pair
opacity ↔ double
getter/setter pair
paintMethod ↔ void Function(Canvas, Offset, double, Paint)?
getter/setter pair
pulseFrequency → double
final
pulsePhase → double
final
radius ↔ double
getter/setter pair
rotation → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape ↔ String?
getter/setter pair
speed ↔ double
getter/setter pair
x ↔ double
getter/setter pair
y ↔ double
getter/setter pair

Methods

copyWith({double? x, double? y, double? radius, double? speed, double? opacity, double? depth, String? shape, void paintMethod(Canvas, Offset, double, Paint)?, IconData? icon, Image? image, double? rotation, double? angularSpeed, double? baseOpacity, double? pulsePhase, double? pulseFrequency}) → Shape
Returns a copy with updated values.
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