toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SlotConstraint.required:
      return 'Required';
    case SlotConstraint.optional:
      return 'Optional';
  }
}