value property
The current value stored in this notifier.
When the value is replaced with something that is not equal to the old value as evaluated by the equality operator ==, this class notifies its listeners.
Implementation
@override
T get value => _value;
Implementation
@override
set value(InAppQuerySnapshot? value) {
if (value != null) {
final id = value.id;
final data = value.docs.where((i) {
final item = i.data;
return item != null && item.isNotEmpty;
}).toList();
if (id.isNotEmpty && data.isNotEmpty) {
super.value = InAppQuerySnapshot(id, data);
} else {
super.value = null;
}
} else {
super.value = null;
}
}