init static method

Future<bool> init(
  1. String clientId,
  2. String key,
  3. String secret
)

Initialize dropbox library

init() should be called only once.

Implementation

static Future<bool> init(String clientId, String key, String secret) async {
  _channel.setMethodCallHandler(_handleMethodCall);

  return await _channel.invokeMethod(
          'init', {'clientId': clientId, 'key': key, 'secret': secret}) ??
      false;
}