getAllDataItems method

Future<List<DataItem>> getAllDataItems()

Obtain all available DataItems on Android Wear network

Implementation

Future<List<DataItem>> getAllDataItems() async {
  List? results = await channel.invokeMethod("getAllDataItems");
  return (results ?? [])
      .map((result) =>
          DataItem.fromJson((result as Map? ?? {}).toMapStringDynamic()))
      .toList();
}