Shapes class Null safety

Constructors

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

Properties

angle double
read / write
canvas Canvas?
read / write
center Offset
read / write
hashCode int
The hash code for this object.
read-only, inherited
paint Paint?
read / write
radius double
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent 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>
read / write