Position class abstract
- Implemented types
- Implementers
- Available extensions
Constructors
-
Position.fromJson(Map<
String, dynamic> j) -
factory
Properties
Methods
-
decrement(
WithXY p) → Position -
Increments the X,Y coordinates by
p
. -
increment(
WithXY p) → Position -
Increments the X,Y coordinates by
p
. -
incrementX(
num n) → Position -
Increments the X coordinate by
n
-
incrementXY(
num nX, num nY) → Position -
Increments the X,Y coordinates by
nX
andnY
. -
incrementY(
num n) → Position -
Increments the Y coordinate by
n
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
) → Position -
A resolved version of this instance.
See
DynamicPoint
. -
setX(
num x) → Position - Sets the X coordinate.
-
setXY(
num x, num y) → Position - Sets the X and Y coordinate.
-
setY(
num y) → Position - Sets the Y coordinate.
-
toJson(
) → Map< String, dynamic> -
override
-
toPoint(
) → Point - Returns this position as a Point.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
resolvePosition(
Position? pos, num? x, num? y, {PCanvasElement? element}) → Position