JhDebug class

Constructors

JhDebug()

Properties

getDebugLogAll List<Map<String, String>>
获取调试栏所有log日志信息
no setter
getGlobalContext BuildContext?
获取全局context
no setter
getNavigatorKey GlobalKey<NavigatorState>
获取全局key
no setter
getPrintLog String
获取print栏 最新的一条log日志信息
no setter
getPrintLogAll List<String>
获取所有print栏 log日志信息
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setGlobalKey GlobalKey<NavigatorState>
自定义全局key
no getter

Methods

clearAllLog() → void
清空所有类型日志
clearDebugLog() → void
清空调试debug所有日志
clearPrintLog() → void
清空print所有日志
hideLog() → void
隐藏jhDebug弹层窗口
init({required BuildContext context, bool hideCustomTab = true, List<CustomTabItem>? customTabs, bool hideBottom = false, Widget? customBottomWidge, VoidCallback? btnTap1, VoidCallback? btnTap2, VoidCallback? btnTap3, String? btnTitle1, String? btnTitle2, String? btnTitle3, int printRecord = JhConstants.PRINT_RECORD, int debugRecord = JhConstants.DEBUG_RECORD, int tabsInitIndex = JhConstants.TABS_INIT_INDEX, bool debugModeFull = JhConstants.DEBUG_MODEFULL, bool scrollFlag = JhConstants.SCROLL_FLAG, bool recordEnabled = JhConstants.RECORD_ENABLED}) → void
初始化组件参数
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeDebugBtn() → void
隐藏全局调试按钮
setDebugLog({required String debugLog, required String debugStack}) → void
设置debug日志内容, 输出flutter错误日志,构建错误等
setPrintLog(String text) → void
设置print栏日志内容
setRecordEnabled(bool isEnabled) → void
设置是否开启记录log模式
showDebugBtn({double? top, double? bottom, double? left, double? rigth, double? width, double? height}) → void
显示全局调试按钮,双击隐藏按钮
showLog() → void
显示JhDebug弹层窗口
toString() String
A string representation of this object.
inherited

Operators

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