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