You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
406 B
Dart
24 lines
406 B
Dart
|
1 month ago
|
import 'dart:io';
|
||
|
|
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
dp(msg, arg) {
|
||
|
|
// debugPrint("\n");
|
||
|
|
|
||
|
|
if (Platform.isAndroid) {
|
||
|
|
debugPrint("\u001b[1;32m $msg $arg");
|
||
|
|
} else {
|
||
|
|
debugPrint("$msg $arg");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
pe(msg, arg) {
|
||
|
|
if (Platform.isAndroid) {
|
||
|
|
debugPrint("\u001b[1;31m $msg ");
|
||
|
|
debugPrint("\u001b[1;31m $arg");
|
||
|
|
} else {
|
||
|
|
debugPrint("$msg ");
|
||
|
|
debugPrint("$arg");
|
||
|
|
}
|
||
|
|
}
|