LxWaiting<T> constructor
LxWaiting<T> ([
- T? lastValue
Creates a waiting status.
Uses an internal cache for null lastValue instances to minimize allocations.
Implementation
factory LxWaiting([T? lastValue]) {
if (lastValue != null) {
return LxWaiting._internal(lastValue);
}
return _cache.putIfAbsent(T, () => LxWaiting<T>._internal(null))
as LxWaiting<T>;
}