basics 0.7.0 copy "basics: ^0.7.0" to clipboard
basics: ^0.7.0 copied to clipboard

outdated

A Dart library containing convenient extension methods on basic Dart objects.

example/main.dart

// Copyright (c) 2020, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

import 'package:basics/basics.dart';

main() async {
  const numbers = <int>[2, 4, 8];

  if (numbers.all((n) => n.isEven)) {
    print('All numbers are even.');
  }

  print('sum of numbers is: ${numbers.sum()}');

  for (var _ in 5.range) {
    print('waiting 500 milliseconds...');
    await Future.delayed(500.milliseconds);
  }
}
95
likes
0
pub points
92%
popularity

Publisher

verified publishergoogle.dev

A Dart library containing convenient extension methods on basic Dart objects.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on basics