better 0.1.0-dev.3 copy "better: ^0.1.0-dev.3" to clipboard
better: ^0.1.0-dev.3 copied to clipboard

outdated

This package serves as an extension to many dart classes with the goal to provide a more fluid development experience

example/better_example.dart

import 'dart:math' as math;

import 'package:better/better.dart';

//TODO: Changes here should also be made to the readme
void main() {
  var r = math.Random();
  var length = r.nextInt(1 << 12);
  print('generating list...');
  var list = [for(int i = 0; i < length; i++) r.nextInt(1 << 31)];
//  var list = [12654, 18, 85,354];
  print('list generated');

  print('calculating stats');
  var start = DateTime.now().millisecondsSinceEpoch;
  var stats = list.stats;
  var end = DateTime.now().millisecondsSinceEpoch;
  print('Finished calculating stats in ${end - start} ms');
  print(stats);
}
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

This package serves as an extension to many dart classes with the goal to provide a more fluid development experience

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, pedantic, test

More

Packages that depend on better