|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 打印日志,外部可以控制日历信息的打印显示,方便调试查错
|
|
|
|
@ -14,10 +15,9 @@ class LogUtil {
|
|
|
|
|
* TAG:类名
|
|
|
|
|
* message:一般就方法名+自定义信息吧
|
|
|
|
|
*/
|
|
|
|
|
static void log(
|
|
|
|
|
{@required dynamic TAG , String message = ""}) {
|
|
|
|
|
if (_enableLog) {
|
|
|
|
|
print("flutter_custom_calendar------$TAG------>$message");
|
|
|
|
|
static void log({@required dynamic TAG, String message = ""}) {
|
|
|
|
|
if (_enableLog && kDebugMode) {
|
|
|
|
|
debugPrint("flutter_custom_calendar------$TAG------>$message");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|