ServiceList patch, bump to 1.1.0+3

This commit is contained in:
Tobe O 2017-12-13 11:31:06 -05:00
parent c52a880489
commit e5fee69cdc
3 changed files with 8 additions and 7 deletions

View file

@ -1,3 +1,6 @@
# 1.1.0+3
* `ServiceList` no longer ignores empty `index` events.
# 1.1.0+2 # 1.1.0+2
* Updated `ServiceList` to also fire on `index`. * Updated `ServiceList` to also fire on `index`.

View file

@ -158,12 +158,10 @@ class ServiceList extends DelegatingList {
// Index // Index
_subs.add(service.onIndexed.listen((data) { _subs.add(service.onIndexed.listen((data) {
var items = asPaginated == true ? data['data'] : data; var items = asPaginated == true ? data['data'] : data;
if (items.isNotEmpty) { this
this ..clear()
..clear() ..addAll(items);
..addAll(items); _onChange.add(this);
_onChange.add(this);
}
})); }));
// Created // Created

View file

@ -1,5 +1,5 @@
name: angel_client name: angel_client
version: 1.1.0+2 version: 1.1.0+3
description: Client library for the Angel framework. description: Client library for the Angel framework.
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_client homepage: https://github.com/angel-dart/angel_client