Skip to content

VelocityOps

extension VelocityOps on num

Extension methods for constructing Velocity values from num.

Properties

feetPerSecond extension no setter

Velocity get feetPerSecond

Creates a Velocity of this value in feet per second.

Available on num, provided by the VelocityOps extension

Implementation
dart
Velocity get feetPerSecond => Velocity.feetPerSecond(this);

kilometersPerHour extension no setter

Velocity get kilometersPerHour

Creates a Velocity of this value in kilometers per hour.

Available on num, provided by the VelocityOps extension

Implementation
dart
Velocity get kilometersPerHour => Velocity.kilometersPerHour(this);

kilometersPerSecond extension no setter

Velocity get kilometersPerSecond

Creates a Velocity of this value in kilometers per second.

Available on num, provided by the VelocityOps extension

Implementation
dart
Velocity get kilometersPerSecond => Velocity.kilometersPerSecond(this);

knots extension no setter

Velocity get knots

Creates a Velocity of this value in knots.

Available on num, provided by the VelocityOps extension

Implementation
dart
Velocity get knots => Velocity.knots(this);

metersPerSecond extension no setter

Velocity get metersPerSecond

Creates a Velocity of this value in meters per second.

Available on num, provided by the VelocityOps extension

Implementation
dart
Velocity get metersPerSecond => Velocity.metersPerSecond(this);

millimetersPerSecond extension no setter

Velocity get millimetersPerSecond

Creates a Velocity of this value in millimeters per second.

Available on num, provided by the VelocityOps extension

Implementation
dart
Velocity get millimetersPerSecond => Velocity.millimetersPerSecond(this);

usMilesPerHour extension no setter

Velocity get usMilesPerHour

Creates a Velocity of this value in US miles per hour.

Available on num, provided by the VelocityOps extension

Implementation
dart
Velocity get usMilesPerHour => Velocity.usMilesPerHour(this);