搜索插件、代码仓与 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.

所属分类

源码仓库

使用此插件的项目