packages_extensions 0.1.0 copy "packages_extensions: ^0.1.0" to clipboard
packages_extensions: ^0.1.0 copied to clipboard

Extensions for non Dart core packages.

packages_extensions #

This is a collection of extension methods fro classes that are not part of the core Dart language. At present we have extensions for Decimal and Rational classes.

Features #

Decimal #

The DecimalExtensionsBase class contains the following methods:

  • isNegative
  • isZero
  • significand
  • significandLength
  • significandString
  • scaleFast
  • scaleAdv
  • precisionFast
  • toStringAsPrecisionFast

Rational #

The StringExtensionBase class contains the following methods:

  • roundToDecimal

Getting started #

Simply import the package and use the packages_extensions libray or area ones.

Usage #

Decimal.from(-1000000001).isNegative;

See the example folder for more examples

Additional information #

File issues on the github repository

0
likes
120
pub points
72%
popularity

Publisher

unverified uploader

Extensions for non Dart core packages.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

decimal, power_extensions, rational

More

Packages that depend on packages_extensions