Range constructor

Range(
  1. String from,
  2. String to
)

Creates a Range object based on from and to values

Implementation

Range(this.from, this.to) {
  if (from.isEmpty) {
    throw ArgumentError.notNull('from');
  }

  if (to.isEmpty) {
    throw ArgumentError.notNull('to');
  }
}