deregisterUser method
Deletes the user.
Implementation
Future<bool> deregisterUser(String profileId) async {
try {
var isSuccess = await Onegini.instance.channel
.invokeMethod(Constants.deregisterUserMethod, <String, String?>{
'profileId': profileId,
});
return isSuccess ?? false;
} on TypeError catch (error) {
throw PlatformException(
code: Constants.wrapperTypeError.code.toString(),
message: Constants.wrapperTypeError.message,
stacktrace: error.stackTrace?.toString());
}
}