string method
Implementation
String string(String format, {String? defaultValue}) {
if (this == null) return defaultValue ?? '';
try {
return DateFormat(format).format(this!);
} catch (e, stackTrace) {
UtilsSentry.reportError(e, stackTrace);
return defaultValue ?? '';
}
}