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