parse static method

Range parse(
  1. String textValue
)
override

Parses the given textValue

Implementation

static Range parse(String textValue) {
  switch (textValue) {
    case 'THISANDFUTURE':
      return Range.thisAndFuture;
    default:
      throw FormatException('Invalid range: [$textValue]');
  }
}