getRegisteredUsers method
This method is used to get the registered user list.
Implementation
@override
Future<void> getRegisteredUsers(
bool server, Function(FlyResponse response)? callback) async {
//filteredContactList
String? response;
try {
response = await mirrorFlyMethodChannel
.invokeMethod('getRegisteredUsers', {"server": server});
var res = convertUsersDataJsonFromString(response);
callback?.call(FlyResponse(true, res, "users list fetched"));
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
callback?.call(FlyResponse(false, FlyConstants.empty, FlyConstants.empty,
FlyException(e.code, e.message, e.details)));
} on Exception catch (e) {
LogMessage.d("Exception ", " $e");
callback?.call(FlyResponse(false, FlyConstants.empty, FlyConstants.empty,
FlyException(FlyErrorCode.unHandle, FlyErrorMessage.unHandle, e)));
}
}