boost 1.8.10 copy "boost: ^1.8.10" to clipboard
boost: ^1.8.10 copied to clipboard

A general purpose utility class collection for Dart and Flutter projects.

example/boost_example.dart

import 'package:boost/boost.dart';

class Person {
  final String name;
  final bool clubMember;

  Person(this.name, this.clubMember);
}

void main() {
  final people = [
    Person('Joe', false),
    Person('Alex', true),
    Person('Grace', true),
    Person('Tina', false),
    Person('Max', false),
  ];

  final split = people.split((p) => p.clubMember);
  print('${split.a.length} people are club Members:');
  split.a.forEach((p) => print(p.name));

  print('${split.b.length} people are not:');
  split.b.forEach((p) => print(p.name));
}
4
likes
130
pub points
59%
popularity

Publisher

unverified uploader

A general purpose utility class collection for Dart and Flutter projects.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on boost