TemperatureConversion class

A utility class for converting temperatures between Celsius, Fahrenheit, and Kelvin.

This class provides static methods to perform common temperature conversions based on standard formulas.

Constructors

TemperatureConversion()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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 other) bool
The equality operator.
inherited

Static Methods

celsiusToFahrenheit(double celsius) double
Converts a temperature from Celsius to Fahrenheit.
celsiusToKelvin(double celsius) double
Converts a temperature from Celsius to Kelvin.
fahrenheitToCelsius(double fahrenheit) double
Converts a temperature from Fahrenheit to Celsius.
fahrenheitToKelvin(double fahrenheit) double
Converts a temperature from Fahrenheit to Kelvin.
kelvinToCelsius(double kelvin) double
Converts a temperature from Kelvin to Celsius.
kelvinToFahrenheit(double kelvin) double
Converts a temperature from Kelvin to Fahrenheit.