a-marenkov / gsheets

A Dart library for working with Google Sheets API.
Other
78 stars 31 forks source link

Added a method to clone the whole spreadsheet and delete it using google drive api #66

Closed AmitSingh12345678 closed 1 year ago

AmitSingh12345678 commented 2 years ago

Hello @a-marenkov, For cloning a spreadsheet, there is already a method available in gsheets library, but for cloning the spreadsheet, we have to clone each worksheet manually which in some cases causes reference error in cloned spreadsheet(I have also raised an issue about this few months ago).

So, I have added a method cloneSpreadsheet to clone a whole spreadsheet and store that cloned spreadsheet on client drive using google drive api. Added another method deleteClonedSpreadsheet to delete the cloned spreadsheet from client drive using google drive api.

And thanks for this great library. It helped me a lot in one of my app. This is my first PR in some open source project : ). So if i made any mistake, please tell me. I will work on that.