Driver constructor

Driver(
  1. String scope, {
  2. void onError(
    1. Object? error,
    2. StackTrace stack
    )?,
  3. VoidCallback? onFull,
})

Implementation

Driver(this.scope, {this.onError, this.onFull}) :
    wd = scope == DriveApi.driveAppdataScope ? "appDataFolder" : "root",
    con = InternetConnection.createInstance() {
  con.onStatusChange.listen((InternetStatus status) {
    internetAvailable = status == InternetStatus.connected;
  });
}