# Chains class final

Chains are an Imperial Unit between Yards and Furlongs. I mainly implemented this to prove the efficiacy of the API. But it does have some historical curiousity and is used in Cricket. https://en.wikipedia.org/wiki/Chain_(unit)

Inheritance
Implemented types

## Constructors

Chains(Measurement m)
Immutable, constructed with Chain.
const
Chains.from(PhysicalQuantities<Length> l)
Used in toUnit.
factory
Chains.fromFeet(Feet f)
1 chain = 66 ft
factory
Chains.fromFurlongs()
1 chain = 1/10 fur
factory
Chains.fromHands()
1 chain = 66 ft = 66 * 3 hh
factory
Chains.fromInches()
These are all pretty straightforward. I took the factors from: https://en.wikipedia.org/wiki/Imperial_units#Length 1 chain = 66 ft = 66*12 in
factory
Chains.fromLeagues()
1 chain = 1/240 lea
factory
Chains.fromMiles()
1 chain = 1/80 mi
factory
Chains.fromNum(num n)
A Measurement without Uncertainty.
factory
Chains.fromYards()
1 chain = 22 yd
factory

## Properties

hashCode int
The hash code for this object.
no setterinherited
magnitude → Measurement
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit → Length
finalinherited

## Methods

baseUnit(Measurement q) → PhysicalQuantities<Length>
inherited
compareTo(PhysicalQuantities<Length> other) int
Compares this object to another object.
inherited
fundamental() → Measurement
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString()
It may seem strange to only define (+,-) without (*,/)... but conceptually things get tricky. 2 kg * 4 kg = 8 kg^2. 2 kg / 4 kg = 0.5 (no unit) These results are computational devices. They are not "masses." What is the return type? kg^2 is used within the context of gravitational attraction, but only as a factor for calculations-- it doesn't have much conceptual meaning. Multiplication might result in a single unit raised to a power or u1 * u2 Division might result in only a NumericalValue or u1 / u2. That complexity would make the API difficult to understand; although rigourously correct. This is all very interesting and discussed in: https://en.wikipedia.org/wiki/Unit_of_measurement#Units_as_dimensions and https://en.wikipedia.org/wiki/Quantity_calculus I'm not a physicist and I don't need it, so, punting. :P
inherited
toUnit(Length u) → PhysicalQuantities<Length>
inherited

## Operators

operator +(PhysicalQuantities<Length> o) → PhysicalQuantities<Length>
inherited
operator -(PhysicalQuantities<Length> o) → PhysicalQuantities<Length>
inherited
operator <(PhysicalQuantities<Length> o) bool
inherited
operator <=(PhysicalQuantities<Length> o) bool
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator >(PhysicalQuantities<Length> o) bool
inherited
operator >=(PhysicalQuantities<Length> o) bool
inherited