getStringFromDateTime function

String? getStringFromDateTime(
  1. DateTime? dateTime
)

Implementation

String? getStringFromDateTime(DateTime? dateTime) {
  if (dateTime != null) {
    return dateTime.toUtc().toIso8601String();
  }
  return null;
}