changeScope method

Future<bool> changeScope(
  1. String scope
)

Implementation

Future<bool> changeScope(String scope) async {
  this.scope = scope;
  if(gsi != null && !gsi!.scopes.contains(scope)){
    if((await gsi!.requestScopes([scope]))) return false;
  }
  wd = this.scope == DriveApi.driveAppdataScope ? "appDataFolder" : "root";
  return true;
}