搜尋套件、儲存庫與 APP 分類

套件詳情v1.19.1

collection

與集合相關的集合和實用函數及類別。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1270萬
喜歡數
1430
Pub 分數
140

安裝套件

flutter pub add collection

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

該集合套件為 Dart 提供基本的實用工具與增強的集合類別,擴展標準清單、地圖和集合的功能。它包含不可變集合、高效排序、比較方法,以及常用操作(如分組、壓縮和合併)的輔助函數。此套件旨在提升程式碼的清晰度與效能,在 Flutter 與 Dart 應用中的資料處理任務中特別實用。該套件由 Dart 團隊維護,並能與現有 Dart 程式碼無縫整合。

適用情境

  • 數據轉換和聚合
  • 不可變資料處理
  • 高效清單和映射操作
  • 排序和比較集合
  • 處理嵌套或複雜的資料結構

主要特色

  • 不可變集合類型
  • 高級排序和比較工具
  • 分組和壓縮輔助工具
  • 可擴展的集合介面
  • 內建相等性和雜湊

適合對象

  • 需要強大集合邏輯的開發人員
  • 具有大量數據處理的Flutter應用
  • 優先考慮函數式程式設計模式的團隊
  • 需要集合類型安全的項目
  • 跨平台 Dart 應用程式

使用建議

  • 需要了解 Dart 的集合 API
  • 如果過度使用,可能會引入開銷
  • 基本的清單/映射操作不需要
  • 最佳搭配其他 Dart 語言功能使用
  • 僅限核心集合增強

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

所屬分類

原始碼儲存庫

使用此套件的專案