xRefresh_Data method

dynamic xRefresh_Data({
  1. bool where(
    1. K
    )?,
  2. bool skipWhere(
    1. K
    )?,
})

Da chiamare per refreshare la Lista dell'Elenco come nuova,ma se la where รจ fill allora refresha la lista usando xListObservable_Hook applicandoci la tua Where

Implementation

xRefresh_Data({bool Function(K)? where, bool Function(K)? skipWhere}) {
  if (where != null) {
    setState(() {
      list.clear();
      if (skipWhere != null) {
        var li = xListObservable_Hook!.where((element) => where(element)).toList();
        li.removeWhere((element) => skipWhere(element));
        list.addAll(li);
      } else {
        list.addAll(xListObservable_Hook!.where((element) => where(element)));
      }
    });
  } else
    xLoadDataOnly();
}