RectangleFactory class Null safety

A RectangleDrawable factory.

Inheritance

Constructors

RectangleFactory({BorderRadius? borderRadius})
Creates an instance of RectangleFactory.

Properties

borderRadius BorderRadius?
The border radius of the RectangleDrawables created by this factory.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

create(Offset position, [Paint? paint]) RectangleDrawable
Creates and returns a RectangleDrawable of zero size and the passed position and paint.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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