You can not 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
586 B

import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
/**
* 便
*/
class LogUtil {
static bool _enableLog = false; //是否可以打印日志
static set enableLog(bool value) {
_enableLog = value;
}
/**
* TAG:
* message+
*/
static void log({@required dynamic TAG, String message = ""}) {
if (_enableLog && kDebugMode) {
debugPrint("flutter_custom_calendar------$TAG------>$message");
}
}
}