toggle method

Mutable<bool?> toggle()

Implementation

Mutable<bool?> toggle() {
  if (value != null) {
    value = !value!;
  }
  return this;
}