startMixerTask method

Future<Map> startMixerTask(
  1. Map config
)

Implementation

Future<Map<dynamic, dynamic>> startMixerTask(
    Map<dynamic, dynamic> config) async {
  config["userData"] = const Utf8Decoder().convert(config["userData"]);
  var data = await (() {
    Map completerMap = createCompleter();
    ZegoFlutterEngine.instance.startMixerTask(
        jsonEncode(config), completerMap["success"], completerMap["fail"]);
    return completerMap["completer"].future;
  })();
  return json.decode(data);
}