login method

Future<void> login(
  1. String username
)

Tries to login a user (by his username) If successful, keep the access data on cache

Implementation

Future<void> login(String username) async {
  Map accessMapResponse = await InstagramApiClient().attachUser(username);
  await _setData(
    sessionKey: "", //accessMapResponse['sessionKey'],
    userId: "${accessMapResponse['userID']}",
  );
}