getUsersWhoBlockedMe method
Future<void>
getUsersWhoBlockedMe([
- bool server = false,
- dynamic callback(
- FlyResponse response
override
Retrieves a list of users who have blocked the current user.
Implementation
@override
Future<void> getUsersWhoBlockedMe(
[bool server = false, Function(FlyResponse response)? callback]) async {
String response = FlyConstants.empty;
try {
response = await mirrorFlyMethodChannel
.invokeMethod('getUsersWhoBlockedMe', {"server": server});
LogMessage.d("getUsersWhoBlockedMe Result ", " $response");
callback?.call(FlyResponse(true,
convertProfileDetailsJsonFromString(response), FlyConstants.empty));
// return convertProfileDetailsJsonFromString(response);
} 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)));
}
}