withoutDomain function
Implementation
String withoutDomain(String handle) {
for (var domain in plugin.serverDescription["availableUserDomains"]) {
if (handle.endsWith(domain)) {
handle = handle.replaceAll(domain, '');
}
}
return handle;
}