fast_operation 1.7.0
fast_operation: ^1.7.0 copied to clipboard

A dart package for essential quick conversions for physical properties like distance, weight, temperature,and so many. Just import one file,then access all of its properties.

Getting started #

A dart package for conversion of various units:

  • base
  • angle
  • distance
  • temperature
  • weight

Install #

Add this to your pubspec.yaml file:

dependencies:
  fast_operation: #latest version

Usage #

import 'package:fast_operation/fast_operation.dart';
void main(){
  var miles = 3.12;
  var meter = Distance().convert(value: miles, from: DISTANCE.miles, to: DISTANCE.meter);
  print(meter);   //5021.15328
}

Each property has its own class name and a convert function:

  • distance - Distance()
  • weight - Weight()
  • and so on

While using from and to, just type PROPERTY in caps and use . to access its units.

E.g.

  var meter = Distance().convert(value: miles, from: DISTANCE.miles, to: DISTANCE.meter);

Here, only exception is for 'base'. To change base between Decimal, Binary, Octal, Hexadecimal:

  var decimal = 123;
  var binary = BaseConverter().decimalToBinary(decimal);
2
likes
90
pub points
25%
popularity

A dart package for essential quick conversions for physical properties like distance, weight, temperature,and so many. Just import one file,then access all of its properties.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

shantanukawade2@gmail.com

License

BSD (LICENSE)

More

Packages that depend on fast_operation