SolidRectBarrier class

Implemented types

Constructors

SolidRectBarrier({required int leftX, required int topY, required int width, required int height, BarrierType type = BarrierType.rippleAndTouch, bool isActive = true})
SolidRectBarrier.fromLTWH(int leftX, int topY, int width, int height, {BarrierType type = BarrierType.rippleAndTouch, bool isActive = true})
SolidRectBarrier.fromRect(Rect rect, {BarrierType type = BarrierType.rippleAndTouch, bool isActive = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
final
isActive bool
Whether or not this barrier is currently active.
getter/setter pairoverride
leftX int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topY int
final
type BarrierType
The type of this barrier.
getter/setter pairoverride
width int
final

Methods

containsPoint(int pointX, int pointY, int imageWidth, int imageHeight) bool
Returns true if this barrier contains the point, false otherwise.
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.
inherited