tryParse static method
Constructs a new NepaliDateTime instance based on formattedString.
Implementation
static NepaliDateTime? tryParse(String formattedString) {
try {
return parse(formattedString);
} on FormatException {
return null;
}
}