getQuery method
Implementation
String getQuery(){
String out = "";
if(name != null) out = _append(out, "name = '${_escape(name!)}'");
if(mime != null) out = _append(out, "mimeType = '${_escape(mime!)}'");
if(notMime != null) out = _append(out, "mimeType != '${_escape(notMime!)}'");
if(parent != null) out = _append(out, "'${_escape(parent!)}' in parents");
out = _append(out, "trashed = $trashed");
if(nameContains != null){
for(var cont in nameContains!){
out = _append(out, "name contains '${_escape(cont)}'");
}
}
if(nameNotContains != null){
for(var cont in nameNotContains!){
out = _append(out, "not name contains '${_escape(cont)}'");
}
}
if(fullTextContains != null){
for(var cont in fullTextContains!){
out = _append(out, "fullText contains '${_escape(cont)}'");
}
}
if(fullTextNotContains != null){
for(var cont in fullTextNotContains!){
out = _append(out, "not fullText contains '${_escape(cont)}'");
}
}
if(editedAfter != null){
out = _append(out, "modifiedTime > ${_dateToString(editedAfter!)}");
}
if(appProperties != null){
for(var key in appProperties!.keys){
out = _append(out, "appProperties has { key='${_escape(key)}");
if(appProperties![key] != null){
out += "' and value='${_escape(appProperties![key]!)}";
}
out += "' }";
}
}
return out;
}