ServiceList patch, bump to 1.1.0+3
This commit is contained in:
parent
c52a880489
commit
e5fee69cdc
3 changed files with 8 additions and 7 deletions
|
@ -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`.
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue