Jonny Borges
Committed by GitHub

Prevent onReady exceptions

## [2.12.4]
- Prevent exceptions on onReady with nullables
## [2.12.3]
- Fix List lenght == null
## [2.12.2]
- Fix Workers
... ...
... ... @@ -361,12 +361,11 @@ class ListX<E> extends Iterable<E> implements RxInterface<E> {
addAll(items);
}
List<E> _value;
List<E> get value {
if (getObs != null) {
getObs.addListener(subject.stream);
}
return _value;
return _list;
}
String get string => value.toString();
... ... @@ -381,8 +380,8 @@ class ListX<E> extends Iterable<E> implements RxInterface<E> {
}
set value(Iterable<E> val) {
if (_value == val) return;
_value = val;
if (_list == val) return;
_list = val;
subject.add(null);
}
... ...
... ... @@ -41,7 +41,7 @@ abstract class DisposableInterface {
/// Do not overwrite this method.
void onStart() {
onInit();
SchedulerBinding.instance.addPostFrameCallback((_) => onReady());
SchedulerBinding.instance?.addPostFrameCallback((_) => onReady());
}
/// Called Called immediately after the widget is allocated in memory.
... ...
name: get
description: Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
version: 2.12.2
version: 2.12.4
homepage: https://github.com/jonataslaw/get
environment:
... ...