tryParseTimestamp method
Try to parse timestamp to DateTime.
Implementation
DateTime? tryParseTimestamp(String timestamp, {bool isUtc = false}) {
try {
return parseTimestamp(timestamp, isUtc: isUtc);
} catch (e) {
return null;
}
}
Try to parse timestamp to DateTime.
DateTime? tryParseTimestamp(String timestamp, {bool isUtc = false}) {
try {
return parseTimestamp(timestamp, isUtc: isUtc);
} catch (e) {
return null;
}
}