setIfChanged method
void
setIfChanged(
- T value
Set $ to value
, but only if they're different
Implementation
void setIfChanged(T value) {
if (value == $) return;
$ = value;
}
Set $ to value
, but only if they're different
void setIfChanged(T value) {
if (value == $) return;
$ = value;
}