ValidDate extension

on

Methods

isValidDateString({String? format = "M-d-yyyy"}) String?

Available on String?, provided by the ValidDate extension

isValidDateString returns an error if the date is not in the correct format.