refreshEventLog function
- BuildContext context,
- int id
Refresh the event log of the device with the given ID
Implementation
Future<void> refreshEventLog(BuildContext context, int id) async {
await Future.wait([
context.asyncRefresh(deviceDetailsApiFamily(id)),
context.asyncRefresh(alertsApiFamily(id)),
context.asyncRefresh(eventsApiFamily(id)),
]);
}