getUserIdFromJidString function

int getUserIdFromJidString(
  1. String jid
)

Implementation

int getUserIdFromJidString(String jid) {
  return int.parse(jid.split('-')[0]);
}