AppFlowy/frontend/appflowy_flutter/lib/util/json_print.dart
Lucas.Xu 5f8ef3856a
feat: initial version for collab document (#4937)
* feat: initial version for collab document

* feat: show sync indicator

* feat: add sync document feature flag

* fix: rust ci

* chore: remove unused code

* chore: update doc_bloc.dart
2024-03-21 13:26:48 +08:00

11 lines
288 B
Dart

import 'dart:convert';
import 'package:appflowy_backend/log.dart';
import 'package:flutter/material.dart';
const JsonEncoder _encoder = JsonEncoder.withIndent(' ');
void prettyPrintJson(Object? object) {
Log.trace(_encoder.convert(object));
debugPrint(_encoder.convert(object));
}