fromTimeStamp static method

  1. @visibleForTesting
DateTime? fromTimeStamp(
  1. int? timestamp
)

Implementation

@visibleForTesting
static DateTime? fromTimeStamp(int? timestamp) {
  if (timestamp == null) return null;

  return DateTime.fromMillisecondsSinceEpoch(timestamp * 1000);
}