connectEmail method

  1. @override
Future<void> connectEmail({
  1. required String value,
  2. String? chainId,
})
override

Implementation

@override
Future<void> connectEmail({required String value, String? chainId}) async {
  if (_emailNotReady) {
    throw Exception('Service is not ready');
  }
  //
  _socialProvider = null;
  _connectionChainId = chainId ?? _connectionChainId;
  final message = ConnectEmail(email: value).toString();
  await _webViewController.runJavaScript('sendMessage($message)');
}