findDataItemsOnURIPath method
Future<List<DataItem> >
findDataItemsOnURIPath({
- required Uri pathURI,
- UriFilterType filterType = UriFilterType.literal,
Find all DataItems on specific pathURI
Implementation
Future<List<DataItem>> findDataItemsOnURIPath(
{required Uri pathURI,
UriFilterType filterType = UriFilterType.literal}) async {
List? results = await channel.invokeMethod("getDataItems",
{"path": pathURI.toString(), "filterType": filterType.index});
return (results ?? [])
.map((result) => DataItem.fromJson((result as Map? ?? {})
.map((key, value) => MapEntry(key.toString(), value))))
.toList();
}