updateContent method

Future updateContent({
  1. required File file,
  2. required String content,
})

DriveApi.files.update wrapper that take String content and update file media(file content)

Implementation

Future updateContent({
  required gd.File file,
  required String content,
}) async {
  String debugPrefix = '$runtimeType.updateContent()';
  lazy.log(debugPrefix);
  try {
    var result = await update(file: file, uploadMedia: content.toMedia());
    lazy.log('$debugPrefix:result:\n${result.jsonPretty()}');
  } catch (e) {
    lazy.log('$debugPrefix:catch:$e');
  }
}