setAuth method

void setAuth(
  1. Map<String, dynamic> c
)

Implementation

void setAuth(Map<String, dynamic> c) {
  api.apiKey = c['apiKey'] ?? '';
  drive.baseFolderUUID = c['baseFolderUUID'] ?? '';
  drive.masterKeys = (c['masterKeys'] ?? '')
      .toString()
      .split('|')
      .where((k) => k.isNotEmpty)
      .toList();
  drive.email = c['email'] ?? '';
}