magic_buffer 0.0.16 magic_buffer: ^0.0.16 copied to clipboard
Buffer class JS implementation based on the buffer module from [node.js].The goal is to provide an API that is 100% identical to [node's Buffer API].
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add magic_buffer
With Flutter:
$ flutter pub add magic_buffer
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
magic_buffer: ^0.0.16
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:magic_buffer/magic_buffer.dart';