authenticate method
用户认证
Implementation
@override
Future<void> authenticate(
String url, String username, String password) async {
try {
await methodChannel.invokeMethod(
'authenticate',
{'url': url, 'username': username, 'password': password},
);
} on PlatformException catch (e) {
throw Exception("认证失败: ${e.message}");
}
}