packages_extensions 0.1.1 copy "packages_extensions: ^0.1.1" to clipboard
packages_extensions: ^0.1.1 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
150
points
28.6k
downloads

Publisher

unverified uploader

Weekly Downloads

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