convertIntValueToDateTime static method

DateTime? convertIntValueToDateTime(
  1. String? value
)

Implementation

static DateTime? convertIntValueToDateTime(String? value) {
  if (value == null) {
    return null;
  } else {
    return int.tryParse(value) != null
        ? DateTime.fromMillisecondsSinceEpoch(int.tryParse(value)!)
        : null;
  }
}