basics

Creator: coderz1093

Last updated:

Add to Cart

Description:

basics

This repository contains a collection of useful extension methods on the
built-in objects in Dart, such as String, Iterable, and Object.
Usage #
Import the basics library.
import 'package:basics/basics.dart';
copied to clipboard
Then use the methods directly on objects in your dart code.
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);
}
}
copied to clipboard
Notes #
This is not an official Google project.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.