CallService<USER_ID> constructor

CallService<USER_ID>(
  1. Future<WebRTCParams> getWebRTCParams(
    1. USER_ID userId
    )
)

Implementation

CallService(Future<WebRTCParams> Function(USER_ID userId) getWebRTCParams) {
  this.getWebRTCParams = getWebRTCParams(getIt.get<AuthenticateService>().userId);
  Future.delayed(const Duration(seconds: 1), () {_callServiceExpired = true;});
}