log static method

Future log({
  1. required String msg,
})

Implementation

static Future log({required String msg}) async {
  if (YkLog._instance._delegate != null) {
    YkLog._instance._delegate?.log(msg);
  } else {
    if (kDebugMode) {
      developer.log("YkLog log : $msg");
    }
  }
}