formattedExternalId property

String get formattedExternalId

The human-readable portion of externalUserId.

Chime's convention is "appId#username" — this returns the username part. Falls back to the full externalUserId if the convention isn't followed.

Implementation

String get formattedExternalId {
  final parts = externalUserId.split('#');
  return parts.length == 2 ? parts[1] : externalUserId;
}