Skip to content
pubscout

typed_data

1.4.0, released 2 years ago by dart.dev

Utility functions and classes for easier work with dart:typed_data lists.

WASM-readyQuiet but busy
$ flutter pub add typed_data
Source repository

What it does

Provides helper classes like TypedDataBuffer and typed queues that wrap typed arrays with list‑like APIs. Adds methods for efficient insertion, concatenation, and sub‑listing of typed data.

AI-written summary of version 1.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need list‑like structures backed by typed arrays for performance.
  • You want typed‑data‑aware buffers or queues without writing low‑level code.

Skip it when

  • You only work with regular Dart collections and don't need typed‑array optimizations.
  • You require high‑level abstractions like state management or networking.

Strengths

  • Zero‑dependency utilities for typed data.
  • Performance‑focused implementations for buffers and queues.
  • Fully null‑safe and works on all Dart platforms.

Weaknesses

  • Limited to typed‑data helpers; no broader functionality.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:typed_data/typed_data.dart';

void main() {
  final buffer = TypedDataBuffer<int>(Int32List(0));
  buffer.addAll([1, 2, 3]);
  print(buffer); // [1, 2, 3]
}

Alternatives

Packages that do the same job and could replace typed_data.

Works with

Packages commonly used together with typed_data: ones it builds on, ones built on it, and its own family.