convertToString method

String convertToString (
  1. {DateTime dateTime,
  2. int timeInMillis,
  3. List<String> dateFormat}
)

Implementation

static String convertToString({DateTime dateTime, int timeInMillis, List<String> dateFormat})
{
  if(timeInMillis != null)
    return convertToString(
        dateTime: DateTime.fromMillisecondsSinceEpoch(timeInMillis),
        dateFormat: dateFormat
    );
  return dateTime != null ? format(dateTime: dateTime, dateFormat: dateFormat) : null;
}