convertToTimeInMillis method

int convertToTimeInMillis (
  1. {DateTime dateTime,
  2. String dateString}
)

Implementation

static int convertToTimeInMillis({DateTime dateTime, String dateString})
{
  if(dateString != null) return convertToTimeInMillis(dateTime: DateTime.tryParse(dateString));
  return dateTime != null ? dateTime.millisecondsSinceEpoch : null;
}