Shapes class

Constructors

Shapes({Canvas? canvas, Paint? paint, double radius = 1, Offset center = Offset.zero, double angle = 0})

Properties

angle double
getter/setter pair
canvas Canvas?
getter/setter pair
center Offset
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
paint Paint?
getter/setter pair
radius double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

draw(String typeString) → void
drawCircle() → void
drawHeart() → void
drawPolygon(int num, {double initialAngle = 0}) → void
drawRect() → void
drawRRect({double? cornerRadius}) → void
drawStar(int num, {double initialAngle = 0}) → void
drawType(ShapeType type) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rect() Rect
rotate(VoidCallback callback) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

types List<String>
getter/setter pair