validationRegEx property

  1. @JsonKey(defaultValue: '^(?!\s*\$).+')
String? validationRegEx
final

Regular expression by which the text gets validated default: '^(?!\s*$).+' that checks if the entered text is empty to allow any type of an answer including an empty one; set it explicitly to null.

Implementation

@JsonKey(defaultValue: '^(?!\s*\$).+')
final String? validationRegEx;