refreshEventLog function

Future<void> refreshEventLog(
  1. BuildContext context,
  2. 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)),
  ]);
}