basics 0.4.0+1

Dart native js
Flutter Android iOS web

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

Dart 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';

Then use the methods directly on objects in your dart code.

List<int> numbers;

if (numbers.isNull) {
  print('Numbers is uninitialized');
}

for (var i in 1.to(10)) {
  if (i.isEven) numbers.add(i);
}

if (numbers.isNotNull && numbers.all(isEven)) {
  print('All numbers are even');
}

Notes #

This is not an official Google project.

28
likes
110
pub points
84%
popularity

Publisher

google.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

quiver

More

Packages that depend on basics