WordPair constructor

WordPair(
  1. String first,
  2. String second
)

Create a WordPair from the strings first and second.

Implementation

WordPair(this.first, this.second) {
  if (first.isEmpty || second.isEmpty) {
    throw ArgumentError("Words of WordPair cannot be empty. "
        "Received: '$first', '$second'");
  }
}