logging method

Future<void> logging(
  1. String content,
  2. FTLogStatus status, {
  3. Map<String, String>? property,
  4. bool? isSilence,
})

输出日志 content 日志内容 status 日志状态 property 附加属性参数(可选)

Implementation

Future<void> logging(String content, FTLogStatus status,
    {Map<String, String>? property, bool? isSilence}) async {
  Map<String, dynamic> map = {};
  map["content"] = content;
  map["status"] = status.index;
  map["isSilence"] = isSilence;
  map["property"] = property;
  await channel.invokeMethod(methodLogging, map);
}