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