list method

Future<FileList> list({
  1. String fields = lazy.defaultGDriveFields,
  2. String orderBy = lazy.defaultGDriveOrderBy,
  3. String spaces = lazy.defaultGDriveSpace,
  4. String? q,
})

DriveApi.files.list wrapper

Implementation

Future<gd.FileList> list({
  String fields = lazy.defaultGDriveFields,
  String orderBy = lazy.defaultGDriveOrderBy,
  String spaces = lazy.defaultGDriveSpace,
  String? q,
}) async {
  String debugPrefix = '$runtimeType.list()';
  try {
    return _driveApi.files.list(
      $fields: fields,
      orderBy: orderBy,
      q: q,
      spaces: spaces,
    );
  } catch (e) {
    throw ('$debugPrefix:$e');
  }
}