createNullableDateTimeProperty method Null safety

EmpireNullableDateTimeProperty createNullableDateTimeProperty(
  1. {DateTime? value,
  2. String? propertyName}
)

Short hand helper function for initializing an EmpireNullableDateTimeProperty.

See EmpireProperty for propertyName usages.

Example

late final EmpireNullableDateTimeProperty birthDate;

birthDate = createNullableDateTimeProperty();

Implementation

EmpireNullableDateTimeProperty createNullableDateTimeProperty(
    {DateTime? value, String? propertyName}) {
  return EmpireNullableDateTimeProperty(value, this,
      propertyName: propertyName);
}