parse static method

Period parse(
  1. String textValue
)

Implementation

static Period parse(String textValue) {
  final startDate = _parseStartDate(textValue);
  final duration = _parseDuration(textValue);
  final endDate = _parseEndDate(textValue);

  return Period(startDate, duration: duration, endDate: endDate);
}