This getter converts given num to Duration in milliseconds
Duration get milliSeconds => Duration(milliseconds: toInt());