sendAuth static method

Future<bool> sendAuth(
  1. String state
)

The DingTalk-Login is under Auth-2.0 This method login with native DingTalk app. This method only supports getting AuthCode,this is first step to login with DingTalk Once AuthCode got, you need to request Access_Token For more information please visit:

Implementation

static Future<bool> sendAuth(String state) async {
  bool result = false;
  try {
    result = await _channel
        .invokeMethod('sendAuth', {"state": "$state", "test": "test"});
  } catch (e) {
    print(e);
  }
  return result;
}