defaultValueSuffix static method
If the annotation includes a defaultValue
, use it when the received value is null
Implementation
static String defaultValueSuffix(FieldSerializable fieldAnnotation) {
return fieldAnnotation.defaultValue != null ? ' ?? ${fieldAnnotation.defaultValue}' : '';
}