cancelLogin method
Cancel the in-flight login. Cancel is terminal; late native results are discarded.
Implementation
@override
Future<bool> cancelLogin() async {
try {
final result = await methodChannel.invokeMethod<bool>('cancelLogin');
return result ?? false;
} on PlatformException catch (e) {
throw TelegramLoginError.platformError(e.message ?? 'Cancel failed');
}
}