createFolder method
Creates a folder, and returns the Google Drive File type.
parents: Pass a list of folder ID's that form the path to where this file should be. Use getFolderPathAsIds
to get these.
Implementation
Future<drive.File> createFolder(final String folderName, {final String? parent}) async {
final folderId = await files.create(
drive.File(name: folderName, mimeType: MimeType.folder, parents: parent == null ? [] : [parent]),
);
return folderId;
}