getClient static method
Returns a new instance of AtClient. App has to pass the current user atSign and the client preference.
Implementation
static Future<AtClient?> getClient(String? currentAtSign) async {
if (_atClientInstanceMap.containsKey(currentAtSign)) {
return _atClientInstanceMap[currentAtSign];
}
AtSignLogger('AtClientImpl')
.severe('Instance of atclientimpl for $currentAtSign is not created');
return null;
}