power_extensions 0.2.2 copy "power_extensions: ^0.2.2" to clipboard
power_extensions: ^0.2.2 copied to clipboard

Extensions for the core dart language classes.

Power Extensions #

This package contains useful extensions for the dart language core classes

Features #

BigInt #

The BigIntExtensionBase class contains the following methods:

  • precision
  • powerOfTen
  • isPowerOfTen
  • scale
  • significandString
  • significand
  • significandLength

String #

The StringExtensionBase class contains the following methods:

  • trimLeftChar
  • trimRightChar
  • cut
  • cutAndAlign
  • preserveOnlyChars
  • splitInLines
  • capitalizeAndLowercase
  • capitalizeAndLowercaseAnyWord
  • capitalizeRestUnchanged
  • uncapitalizeRestUnchanged
  • onlyContainsDigits
  • onlyContainsAlpha
  • isDartIdentifier
  • getDartIdentifier
  • startsAndEndsWith
  • trimDelimiters
  • trimStringDelimiters

Getting started #

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

Usage #

BigInt.from(-1000000001).isPowerOfTen;

See the example folder for more examples

Additional information #

File issues on the github repository

0
likes
120
pub points
61%
popularity

Publisher

unverified uploader

Extensions for the core dart language classes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on power_extensions