ActiveCall constructor

ActiveCall({
  1. required String from,
  2. required String to,
  3. DateTime? initiated,
  4. required CallDirection callDirection,
  5. Map<String, dynamic>? customParams,
})

Implementation

ActiveCall({
  required String from,
  required String to,
  this.initiated,
  required this.callDirection,
  this.customParams
})   : this.to = to.replaceAll("client:", ""),
      this.from = from.replaceAll("client:", ""),
      toFormatted = _prettyPrintNumber(to),
      fromFormatted = _prettyPrintNumber(from);