import 'package:flutter/material.dart'; /// Call configuration /// /// @author Pierre Hubert class CallConfig { final List/*!*/ iceServers; const CallConfig({ @required this.iceServers, }) : assert(iceServers != null); /// Turn this call configuration into the right for the WebRTC plugin Map get pluginConfig => { "iceServers": iceServers.map((f) => {"url": f}).toList(), "sdpSemantics": "unified-plan", }; }