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
532 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import 'package:flutter/cupertino.dart';
/**
* 打印日志,外部可以控制日历信息的打印显示,方便调试查错
*/
class LogUtil {
static bool _enableLog = true; //是否可以打印日志
static set enableLog(bool value) {
_enableLog = value;
}
/**
* TAG:类名
* message一般就方法名+自定义信息吧
*/
static void log(
{@required dynamic TAG , String message = ""}) {
if (_enableLog) {
print("flutter_custom_calendar------$TAG------>$message");
}
}
}