Property.set

bool set(T newValue) @safe

Set the current value.

When the new value compares equal to the current value, no emission occurs and set returns false. Equality is `==`; for floating-point T this means a NaN value compares unequal to itself (NaN assignments always emit) while -0.0 and 0.0 compare equal (no emission).

Parameters

newValueThe value to assign.

Returns

true when the value changed and onChanged was emitted.