updateAll method

AccessMode updateAll(
  1. AccessMode? val
)

Implementation

AccessMode updateAll(AccessMode? val) {
  if (val != null) {
    var g = val.getGiven();
    if (g != null) {
      updateGiven(g);
    }

    var w = val.getWant();
    if (w != null) {
      updateWant(w);
    }
    mode = _given & _want;
  }
  return this;
}