deltamin 1.0.0 copy "deltamin: ^1.0.0" to clipboard
deltamin: ^1.0.0 copied to clipboard

Minify your Delta data before sending it down the wire to save bandwidth.

example/deltamin_example.dart

import 'package:deltamin/deltamin.dart';

void main() {

  final delta = {
    "insert": 'Gandalf',
    "attributes": {"bold": true}
  };


  // Minify the delta object
  var minifiedDelta = minify(delta);

  // Unminify the minified object.
  // Should be the same as the original delta object
  var unminifiedDelta = unminify(minifiedDelta);

  print(unminifiedDelta);
  // { "insert": 'Gandalf', "attributes": {"bold": true} }
}
3
likes
145
points
15
downloads

Publisher

verified publisherdwyl.com

Weekly Downloads

Minify your Delta data before sending it down the wire to save bandwidth.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

collection

More

Packages that depend on deltamin