PrintEntity class

Constructors

PrintEntity.new({required PrintType type, required String title, required String content, required DateTime startTime, required bool showDetail})
初始化
const

Properties

content String
内容
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDetail bool
是否显示详情
final
startTime DateTime
时间
final
title String
标题
final
type PrintType
类型 info/debug/warn/error
final

Methods

contains(String keyword) bool
关键字搜索
copyWith({PrintType? type, String? title, String? content, DateTime? startTime, bool? showDetail}) PrintEntity
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

length ValueNotifier<int>
final
list List<PrintEntity>
final

Static Methods

add({PrintType type = PrintType.info, String title = '', required Object content, bool? hasPrintLog, bool? hasWriteLog}) → void
添加日志
clear() → void
清空log日志