activeCalls method
Get active calls.
Helpful when starting the app from terminated state to retrieve information about latest calls
Implementation
@override
Future<List<CallEvent>> activeCalls() async {
final activeCallsRaw =
await methodChannel.invokeMethod<List>("activeCalls");
if (activeCallsRaw == null) return [];
return activeCallsRaw
.map<Map<String, dynamic>>((e) => Map<String, dynamic>.from(e))
.map((e) => CallEvent.fromMap(e))
.toList();
}