dart_extensionz 6.3.2 copy "dart_extensionz: ^6.3.2" to clipboard
dart_extensionz: ^6.3.2 copied to clipboard

A set of Dart extensions I use in various projects. Including Boolean, DateTime extensions and more.

Dart Extensionz #

pub package

A set of Dart extensions I use in various projects.

Usage #

  • Ordinal
int value = 12;
String result = value.ordinal;
expect(result, '12th');
  • Normalize Space
String value = '   Jon        Snow     ';
String result = value.normalizeSpace();
expect(result, 'Jon Snow');
  • Files

File file = File('/documents/MyAwesomeFile.txt');
expect(file.name, 'MyAwesomeFile.txt');
expect(file.displayName, 'MyAwesomeFile');
expect(file.extension, 'txt');
  • Mask
String value = 'Testing';
expect(value.mask(), '####ing');
expect(value.mask(end: value.length, char: '*'), '*******');
1
likes
140
pub points
54%
popularity

Publisher

verified publishermj12358.dev

A set of Dart extensions I use in various projects. Including Boolean, DateTime extensions and more.

Repository (GitHub)
View/report issues

Topics

#dart #extension

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com

License

BSD-3-Clause (LICENSE)

Dependencies

intl

More

Packages that depend on dart_extensionz