onConnected method

void onConnected(
  1. String hdrFrom,
  2. String hdrTo,
  3. bool withVideo
)

Handles 2xx responses

Implementation

void onConnected(String hdrFrom, String hdrTo, bool withVideo) {
  _state = CallState.connected;
  _startTime = DateTime.now();
  _hasVideo = withVideo;
  _duration = const Duration(seconds: 0);
  notifyListeners();
}