initZoom method

  1. @override
Future<List> initZoom(
  1. ZoomOptions options
)
override

Implementation

@override
Future<List> initZoom(ZoomOptions options) async {
  var optionMap = new Map<String, String>();
  if (options.jwtToken != null) {
    optionMap.putIfAbsent("jwtToken", () => options.jwtToken!);
  }
  optionMap.putIfAbsent(
    "customAndroidUi",
    () => options.customAndroidUi != null && options.customAndroidUi!
        ? "true"
        : "false",
  );
  optionMap.putIfAbsent("domain", () => options.domain);
  return channel
      .invokeMethod<List>('init', optionMap)
      .then<List>((List? value) => value ?? List.empty());
}