A velocity in two dimensions.

Constants

zero Velocity

A velocity that isn't moving at all.

const Velocity(pixelsPerSecond: Offset.zero)

Constructors

Velocity({Offset pixelsPerSecond })

Creates a velocity.

const

Properties

hashCode int

read-only
pixelsPerSecond Offset

The number of pixels per second of velocity in the x and y directions.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator +(Velocity other) Velocity

Return the sum of two velocities.

operator -(Velocity other) Velocity

Return the difference of two velocities.

operator ==(other) bool

The equality operator.

operator unary-() Velocity

Return the negation of a velocity.

Methods

toString() String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

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

inherited