renderDateField method Null safety

void renderDateField(
  1. String name,
  2. DateTime? date,
  3. StringBuffer buffer
)

Implementation

void renderDateField(String name, DateTime? date, StringBuffer buffer) {
  if (date == null) {
    return;
  }
  renderField(name, DateCodec.encodeDate(date), true, buffer);
}