flutter_printer 1.0.3 flutter_printer: ^1.0.3 copied to clipboard
Handling the original flutter print method incomplete, no json format problem.This is a pure dart language development package
flutter_printer #
处理原始的flutter打印方法不完整,没有json格式的问题。 这是一个纯dart开发包,可以打印出完整的json格式数据并带有打印位置信息,可快速定位到调用Printer的文件。
Handling the original flutter print method incomplete, no json format problem.This is a pure dart language development package
Supported Platforms
- Android
- iOS
How to Use #
# add this line to your dependencies
flutter_printer: ^1.0.3
import 'flutter_printer.dart';
Printer.printMapJsonLog(list,stackTrace: StackTrace.current,);
or
Printer.printMapJsonLog(map,stackTrace: StackTrace.current,prefix: "我是前缀:",);
当你发布的时候请关闭数据打印
Please turn off data printing when you publish it.
Printer.enable = false;
Printer property | description |
---|---|
dynamic | List or Map or String |
stackTrace | StackTrace.current(固定写法/Fixed writing) |
prefix | prefix |