logout method
Method for log out
Implementation
Future<bool> logout() async {
try {
var isSuccess =
await Onegini.instance.channel.invokeMethod(Constants.logout);
return isSuccess ?? false;
} on TypeError catch (error) {
throw PlatformException(
code: Constants.wrapperTypeError.code.toString(),
message: Constants.wrapperTypeError.message,
stacktrace: error.stackTrace?.toString());
}
}