defaultValueSuffix static method

String defaultValueSuffix(
  1. FieldSerializable fieldAnnotation
)

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}' : '';
}