power_extensions 0.2.3 copy "power_extensions: ^0.2.3" to clipboard
power_extensions: ^0.2.3 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
150
points
20.3k
downloads

Publisher

unverified uploader

Weekly Downloads

Extensions for the core dart language classes.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on power_extensions