Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lamnhan066/google_drive_helper


https://github.com/lamnhan066/google_drive_helper

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

# Google Drive Helper

Make it easier for you to use google drive on all platforms.

## Usage

**Create an instance:**

``` dart
final googleDriveHelper = GoogleDriveHelper(
// Get this value from [google_sign_in_helper] plugin or using [AuthClient] from [google_sign_in] plugin
client: googleSignInHelper.client,
spaces: 'appDataFolder',
);
```

**All methods:**

``` dart
googleDriveHelper.fileList();
googleDriveHelper.update(
fileId: ,
content: ,
);
googleDriveHelper.updateAsBytes(
fileId: ,
bytes: >,
);
googleDriveHelper.upload(
content: ,
);
googleDriveHelper.uploadAsBytes(
bytes: >,
);
googleDriveHelper.createFolder();
googleDriveHelper.delete();
googleDriveHelper.download();
googleDriveHelper.downloadAsBytes();
```