setTagIfAbsent<T> method
Sets a tag associated with this viewmodel and a key.
If the given newValue
is Disposable,
it will be dispose once dispose.
If a value was already set for the given key, this calls do nothing and
returns currently associated value, the given newValue
would be ignored
If the ViewModel was already disposed then dispose() would be called on the returned object if it implements Disposable. The same object may receive multiple close calls, so method should be idempotent.
Implementation
@override
T setTagIfAbsent<T>(String key, T newValue) {
return _holder.setTagIfAbsent(key, newValue);
}