0 purchases
unit transformer
Unit_Transformer #
Unit converting library. #
Hecho en 🇵🇷 por Radamés J. Valentín Reyes #
#Import package
import 'package:unit_transformer/conversion_units.dart';
import 'package:unit_transformer/transformer.dart';
copied to clipboard
Length #
convertLength(
length: 150,
from: LengthUnit.centimeters,
to: LengthUnit.feet,
);
copied to clipboard
Volume #
convertVolume(
volume: 50,
from: VolumeUnit.quartsUS,
to: VolumeUnit.cubicFeet,
);
copied to clipboard
Weight and mass #
convertMassOrWeight(
massOrWeight: 1,
from: WeightOrMassUnit.longTonsUK,
to: WeightOrMassUnit.dekagrams,
);
copied to clipboard
Temperature #
convertTemperature(
temperature: 1,
from: TemperatureUnit.kelvin,
to: TemperatureUnit.celsius,
);
copied to clipboard
Energy #
convertEnergy(
energy: 1,
from: EnergyUnit.britishThermalUnits,
to: EnergyUnit.joules,
);
copied to clipboard
Pressure #
convertPressure(
pressure: 15,
from: PressureUnit.kilopascals,
to: PressureUnit.milimitersOfMercury,
);
copied to clipboard
Speed #
convertSpeed(
speed: 1,
from: SpeedUnit.mach,
to: SpeedUnit.metersPerSecond,
);
copied to clipboard
Power #
convertPower(
power: 2,
from: PowerUnit.horsepowerUS,
to: PowerUnit.watts,
);
copied to clipboard
Contribute/donate by tapping on the Pay Pal logo/image #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.