set method
Set the current value by a method
Implementation
@override
bool set(
T val, {
/// Skip equality check and update the value
bool force = false,
}) {
if (disposed) {
throw SignalsWriteAfterDisposeError(this);
}
if (force || !isInitialized || !equalityCheck(val, internalValue)) {
beforeUpdate(val);
internalSetValue(val);
return true;
}
return false;
}