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} }
}
0
likes
145
pub points
0%
popularity

Publisher

verified publisherdwyl.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

collection

More

Packages that depend on deltamin