getPackage method

  1. @override
Map<String, String> getPackage()
override

记录包

  • 可用于上传

Implementation

@override
Map<String, String> getPackage() => <String, String>{
  'channelName' : channelName,
  'methodName' : methodName ?? '',
  'sendTimestamp' : sendTimestamp.toString(),
  'arguments' : arguments.toString(),
  'receiveTimestamp' : receiveTimestamp.toString(),
  //结果可能会较大,做一个截取
  'results' : resStr.length > 100 ? resStr.substring(0, 99) : resStr,
};