RectangleShape<T> class

Provides touchable rectangle shape.

Inheritance

Constructors

RectangleShape({required Offset rectOffset, required Size rectSize, required T data})

Properties

data → T
The data of T.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
rectOffset Offset
The position of rectangle.
final
rectSize Size
The size of rectangle.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isHit(Offset offset) bool
Check rectangle has been clicked.
override
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.
override