FLUTTER ECOSYSTEM

google/dart-basics

基本的な Dart オブジェクトに対する便利な拡張メソッドを含む Dart ライブラリ。

dart-basics のプロジェクト画像
Stars
165
Forks
19
最終プッシュ(UTC)
2026/08/01
プロジェクト状態
公開中
Google GitHub avatar
GITHUB Organization

Google ↗

Google ❤️ Open Source

United States of America公式サイト ↗
言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 3 件

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

Dart CI pub package package publisher

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.

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);
  }
}

Notes

This is not an official Google project.