logout method
Logout/clear the current user session if supported.
This method clears the current user session and any cached data.
Returns true if logout was successful, false otherwise.
Implementation
@override
Future<bool> logout() async {
try {
final result = await methodChannel.invokeMethod<bool>('logout');
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Failed to logout: ${e.message}');
return false;
}
}