Skip to content

Commit 4d1fdcd

Browse files
committed
use debugPrint instead of print
1 parent 052eb4c commit 4d1fdcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/mixpanel_flutter_web.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'dart:async';
22
import 'dart:js_interop';
33

4+
import 'package:flutter/foundation.dart';
45
import 'package:flutter/services.dart';
56
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
67
import 'package:mixpanel_flutter/web/mixpanel_js_bindings.dart';
@@ -58,8 +59,8 @@ JSAny? safeJsify(dynamic value) {
5859
} else if (value is String) {
5960
return value.toJS;
6061
} else {
61-
print('[Mixpanel] Warning: Unsupported type for JS conversion: ${value.runtimeType}. '
62-
'Value will be ignored. Supported types are: Map, List, DateTime, bool, num, String, JSAny, and null.');
62+
debugPrint('[Mixpanel] Warning: Unsupported type for JS conversion: ${value.runtimeType}. '
63+
'Value will be ignored. Supported types are: Map, List, DateTime, bool, num, String, JSAny, and null.');
6364
return null;
6465
}
6566
}

0 commit comments

Comments
 (0)