requiredPrefix property
String
get
requiredPrefix
Returns an empty string when the field is a nullable, otherwise returns 'required'
Implementation
String get requiredPrefix => isNullable ? '' : ' required ';