start method

void start({
  1. NetLogMode mode = NetLogMode.afNetworking,
})

Implementation

void start({NetLogMode mode = NetLogMode.afNetworking}) async {
  CanaryWebSocket.instance.start();
  await channel
      .invokeMethod('enableNetLog', mode.toString())
      .then((value) => null);
  _forwardLog = true;
  logger.d('开启网络日志');
}