discontinuedPackage tempcord_data_parser has been discontinued.

Temperature class abstract

An object that describe thermal of the animal.

This object defined 2 subtype of Temperature: Celsius and Fahrenheit.

Implemented types
Annotations
  • @immutable
  • @sealed

Constructors

Temperature.parse({required Object value, String? symbol})
Get a Temperature from raw data of value and unit symbol.
factory

Properties

hashCode → int
Calculate hashed of unit, value and runtimeType.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unit → String
A symbol that repersenting this Temperature.
no setter
value → double
A double that describe measure in this unit.
final

Methods

compareTo(Temperature other) → int
Compare this Temperature to other in the same measurment.
override
equalsInMeasure(Temperature other) → bool
Check this Temperature has the same measurment of other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator +(Object add) → Temperature
Add num or Temperature in the same measurment.
operator -(Object subtract) → Temperature
Subtract num or Temperature in the same measurment.
operator <(Temperature other) → bool
Check this Temperature has lower measurment of other.
operator <=(Temperature other) → bool
Check this Temperature has lower or equal measurment of other.
operator ==(Object? other) → bool
Check this Temperature has same hashCode with other.
override
operator >(Temperature other) → bool
Check this Temperature has greater measurment of other.
operator >=(Temperature other) → bool
Check this Temperature has greater or equal measurment of other.