SearchCriteria constructor
SearchCriteria({})
Create a [SearchCriteria].
@param path the path to search for @param key the key to search for @param value the value to search for
Implementation
SearchCriteria(
{String? searchPath,
String? key,
String? value,
String? nodeValueLastModified,
String? nodeValueType,
String? owner}) {
path = searchPath ?? ':';
if (searchPath == null && key == null) {
return;
}
nodeValueKey = key;
if (value != null && value != '%') {
nodeValueValue = value;
}
if (nodeValueLastModified != null) {
this.nodeValueLastModified = nodeValueLastModified;
}
if (owner != null) {
values[Field.owner] = owner;
}
if (nodeValueType != null) {
values[Field.type] = nodeValueType;
}
}