updateCallDuration static method

Future<void> updateCallDuration(
  1. int seconds
)

Implementation

static Future<void> updateCallDuration(int seconds) async {
  print('[Isolate] updateCallTimer() Hash: ${Isolate.current.hashCode}');
  try {
    await _ongoingCallChannel.invokeMethod('updateCallDuration', {
      'call_duration_seconds': seconds,
    });
  } catch (e) {
    if (kDebugMode) {
      print("Error updating call duration: $e");
    }
  }
}