typed_data 1.1.6

  • Readme
  • Changelog
  • Installing
  • 75

Helper libraries for working with typed data lists. #

The typed_data package contains utility functions and classes that makes working with typed data lists easier.

Using #

The typed_data package can be imported as

import 'package:typed_data/typed_data.dart';

Typed buffers: Growable typed data lists #

Typed buffers are contains growable lists backed by typed arrays. These are similar to the growable lists returned by List(), but stores typed data like a typed data list.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1.1.6 #

  • Set max SDK version to <3.0.0, and adjust other dependencies.

1.1.5 #

  • Undo unnessesary SDK version constraint tweak.

1.1.4 #

  • Expand the SDK version constraint to include <2.0.0-dev.infinity.

1.1.3 #

  • Fix all strong-mode warnings.

1.1.2 #

  • Fix a bug where TypedDataBuffer.insertAll could fail to insert some elements of an Iterable.

1.1.1 #

  • Optimize insertAll with an Iterable argument and no end-point.

1.1.0 #

  • Add start and end parameters to the addAll() and insertAll() methods for the typed data buffer classes. These allow efficient concatenation of slices of existing typed data.

  • Make addAll() for typed data buffer classes more efficient for lists, especially typed data lists.

1.0.0 #

  • ChangeLog starts here

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  typed_data: ^1.1.6

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:typed_data/typed_data.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jun 5, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.2
  • pana: 0.13.8-dev

Health suggestions

Fix lib/typed_buffers.dart. (-18.17 points)

Analysis of lib/typed_buffers.dart reported 40 hints, including:

line 40 col 32: Unnecessary new keyword.

line 45 col 32: Unnecessary new keyword.

line 49 col 3: Avoid return types on setters.

line 57 col 11: Use isEmpty instead of length

line 92 col 13: Unnecessary new keyword.

Maintenance suggestions

Package is getting outdated. (-88.22 points)

The package was last published 98 weeks ago.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and typed_data.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.16.0 <3.0.0
Dev dependencies
test >=0.12.42 <2.0.0