CallMemberId.fromString constructor

CallMemberId.fromString(
  1. String string
)

Constructs a CallMemberId from the provided string.

Implementation

factory CallMemberId.fromString(String string) {
  final List<String> split = string.split('.');
  if (split.length != 2) {
    throw const FormatException('Must have a UserId.DeviceId format');
  }

  return CallMemberId(UserId(split[0]), ChatCallDeviceId(split[1]));
}