get method

Future<CallHandleImpl> get(
  1. String callId
)

本地有的直接返回;没有的取详情(rtc.get)。

Implementation

Future<CallHandleImpl> get(String callId) async {
  core.requireSignedIn();
  if (callId.isEmpty) throw validationError('required', 'call_id');
  final local = _handles[callId];
  if (local != null) return local;
  return fetchCall(callId);
}