addFrom method

void addFrom(
  1. RandomUnicode other
)

Add all included and excluded ranges from other object

Implementation

void addFrom(RandomUnicode other) {
  for (var r in other.excluded) {
    r.random = random;
  }
  for (var r in other.included) {
    r.random = random;
  }
  excluded.addAll(other.excluded);
  included.addAll(other.included);
}