WordPair constructor
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'");
}
}