Printer class

Constructors

Printer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

config ColorConfig
getter/setter pair
enable bool
是否开启打印 Whether to turn on printing
getter/setter pair

Static Methods

debug(dynamic content, {StackTrace? stackTrace, String? prefix, int? xtermRgb}) → void
error(dynamic content, {StackTrace? stackTrace, String? prefix, int? xtermRgb}) → void
info(dynamic content, {StackTrace? stackTrace, String? prefix, int? xtermRgb}) → void
printMapJsonLog(dynamic content, {StackTrace? stackTrace, String? prefix, int? xtermRgb}) → void
Print map or list, etc. stackTrace stackTrace prefix prefix xtermRgb 0-255 可已打印任意数据,stackTrace不为null时可显示出使用Printer的位置,prefix 打印数据前缀 Any data can be printed. When the stackTrace is not null, the location where the printer is used can be displayed. The prefix prints the data prefix.
warn(dynamic content, {StackTrace? stackTrace, String? prefix, int? xtermRgb}) → void