underscore 0.0.5 copy "underscore: ^0.0.5" to clipboard
underscore: ^0.0.5 copied to clipboard

Underscore is a dart utility library for efficient Flutter development.

Underscore #

pub package pub likes pub points

Underscore is a dart utility library for efficient Flutter development.

Underscore offers a versatile collection of over 100 functions tailored for everyday functional needs such as mapping, filtering, and invoking, alongside specialized tools like function binding, dart templating, rapid index creation, and comprehensive deep equality testing.

How to use #

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  underscore: ^0.0.5

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub add underscore

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:underscore/underscore.dart' as _;

4. Use it

Now in your Dart code, you can use:


var users = [
  { 'user': 'barney', 'age': 36, 'active': true},
  { 'user': 'fred', 'age': 40, 'active': false}
];
print
(
_.filter(users, (o) => !(o['active'])));
// output:  { 'user': 'fred', 'age': 40, 'active': false }
2
likes
160
pub points
0%
popularity

Publisher

verified publisherbitinfinitywebsolutions.com

Underscore is a dart utility library for efficient Flutter development.

Homepage
Repository (GitHub)
View/report issues

Topics

#dart #utility #underscore #lodash

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on underscore