Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenroose/dart-snippets
A collection of useful Dart code snippets.
https://github.com/stevenroose/dart-snippets
Last synced: about 1 month ago
JSON representation
A collection of useful Dart code snippets.
- Host: GitHub
- URL: https://github.com/stevenroose/dart-snippets
- Owner: stevenroose
- License: mit
- Created: 2014-11-25T18:05:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-08T13:52:13.000Z (about 9 years ago)
- Last Synced: 2024-10-30T20:24:06.278Z (3 months ago)
- Language: Dart
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
dart-snippets
=============A collection of useful Dart code snippets. Each of them are defined in a separate library and can be imported separately.
[ByteSink](https://github.com/stevenroose/dart-snippets/blob/master/lib/byte_sink.dart)
--------
A ByteSink implementation that implements the dart:core Sink interface.
It supports adding single and multiple bytes (both List as TypedData classes like Uint8List) and can be extracted as a Uint8List byte string.[LRUMap](https://github.com/stevenroose/dart-snippets/blob/master/lib/lru_map.dart)
------
An implementation of a Map which has a maximum size and uses a Least Recently Used algorithm to remove items from the map when the maximum size is reached and new items are added.