修改屏蔽控制台输出方式

hmxc
张萌 3 years ago
parent 58f4e0fcce
commit f4d3bb7e04

@ -54,8 +54,8 @@ class WebSocketUtil {
/// ///
Function? onClosed; Function? onClosed;
/// ///
bool _consolePrint = false; bool _consolePrint = true;
///websocket ///websocket
void initWebSocket( void initWebSocket(
@ -201,7 +201,7 @@ class WebSocketUtil {
//print //print
void _dPrint(dynamic data) { void _dPrint(dynamic data) {
if (!this._consolePrint) { if (this._consolePrint) {
print(data); print(data);
} }
} }

Loading…
Cancel
Save