refreshUpdateHybridList method

dynamic refreshUpdateHybridList(
  1. String? _uniqueID
)

will call updateHybridList after refreshAt time

Implementation

refreshUpdateHybridList(String? _uniqueID) async {
  if ((refreshAt != null) && (refreshAt!.isAfter(DateTime.now()))) {
    refreshTimer =
        await Future.delayed(refreshAt!.difference(DateTime.now()));

    if (_uniqueID == uniqueID) {
      /// if disposed, [uniqueID] will be null
      updateHybridList();
    }
  }
}