ModernFormDatePicker constructor Null safety

const ModernFormDatePicker(
  1. {Key? key,
  2. void onChanged(
    1. DateTime
    )?,
  3. void onRemove(
      )?,
    1. bool sufixRemoveEnabled = false,
    2. String? label,
    3. DateTime? value,
    4. bool? dateAndTime = true,
    5. bool? enabled = true,
    6. String? validator(
      1. dynamic
      )?,
    7. String? helperText}
    )

    Implementation

    const ModernFormDatePicker({
      Key? key,
      this.onChanged,
      this.onRemove,
      this.sufixRemoveEnabled = false,
      this.label,
      this.value,
      this.dateAndTime = true,
      this.enabled = true,
      this.validator,
      this.helperText,
    }) : super(key: key);