connect method

Future<Map<String, dynamic>> connect()

Implementation

Future<Map<String, dynamic>> connect() async {
  if (accessToken.isNotEmpty) {
    canRecalibrate = await checkCanRecalibrate();
    canEvaluate = await checkCanEvaluate();

    return {
      'message':
          'Successfully connected. Recalibrate : $canRecalibrate, Evaluate : $canEvaluate'
    };
  } else {
    return Future.error('Connection failed : Empty accessToken');
  }
}