removeNamespaceFromString method

String removeNamespaceFromString(
  1. String _id
)

Removes the namespace from a string

Implementation

String removeNamespaceFromString(String _id) {
  var _namespace =
      AtClientManager.getInstance().atClient.getPreferences()!.namespace;
  if ((_namespace != null) && (_id.contains('.$_namespace'))) {
    _id = _id.replaceAll(('.$_namespace'), '');
  }

  return _id;
}