gDriveFileMeta function

File gDriveFileMeta({
  1. DateTime? modifiedTime,
  2. List<String> parents = defaultGDriveParents,
  3. required String name,
})

Implementation

gd.File gDriveFileMeta({
  DateTime? modifiedTime,
  List<String> parents = defaultGDriveParents,
  required String name,
}) {
  // File Metadata
  gd.File gdFile = gd.File();
  gdFile
    ..name = name
    ..parents = parents
    ..modifiedTime = modifiedTime ?? DateTime.now().toUtc();
  return gdFile;
}