deltamin 1.0.0
deltamin: ^1.0.0 copied to clipboard
Minify your Delta data before sending it down the wire to save bandwidth.
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} }
}