Skip to content

Commit 9acd328

Browse files
committed
♻️ Using log to log.
1 parent 548e891 commit 9acd328

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/src/utils/real_debug_print.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
/// [Author] Alex (https://github.com/AlexVincent525)
33
/// [Date] 2020/4/20 10:36
44
///
5+
import 'dart:developer';
6+
57
import 'package:flutter/foundation.dart';
68

79
/// Print message only if at [kDebugMode].
810
/// 仅在debug模式下输出消息
9-
void realDebugPrint(String message, {int wrapWidth}) {
11+
void realDebugPrint(dynamic message) {
1012
if (kDebugMode) {
11-
debugPrint(message, wrapWidth: wrapWidth);
13+
log('$message');
1214
}
1315
}

0 commit comments

Comments
 (0)