Base class for Size and Offset, which are both ways to describe a distance as a two-dimensional axis-aligned vector.

Implemented by

Constructors

OffsetBase(double _dx, double _dy)

Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.

const

Properties

hashCode int

read-only
isInfinite bool

Returns true if either dimension is double.INFINITY, and false if both are finite (or negative infinity, or NaN).

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator <(OffsetBase other) bool

Less-than operator. Compares an Offset or Size to another Offset or Size, and returns true if both the horizontal and vertical values of the left-hand-side operand are smaller than the horizontal and vertical values of the right-hand-side operand respectively. Returns false otherwise.

operator <=(OffsetBase other) bool

Less-than-or-equal-to operator. Compares an Offset or Size to another Offset or Size, and returns true if both the horizontal and vertical values of the left-hand-side operand are smaller than or equal to the horizontal and vertical values of the right-hand-side operand respectively. Returns false otherwise.

operator ==(other) bool

Equality operator. Compares an Offset or Size to another Offset or Size, and returns true if the horizontal and vertical values of the left-hand-side operand are equal to the horizontal and vertical values of the right-hand-side operand respectively. Returns false otherwise.

operator >(OffsetBase other) bool

Greater-than operator. Compares an Offset or Size to another Offset or Size, and returns true if both the horizontal and vertical values of the left-hand-side operand are bigger than the horizontal and vertical values of the right-hand-side operand respectively. Returns false otherwise.

operator >=(OffsetBase other) bool

Greater-than-or-equal-to operator. Compares an Offset or Size to another Offset or Size, and returns true if both the horizontal and vertical values of the left-hand-side operand are bigger than or equal to the horizontal and vertical values of the right-hand-side operand respectively. Returns false otherwise.

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited