formatTime method

String formatTime({
  1. String? newTimeFormat,
})

formatTime extension method this extension method will convert a date time string into provided or default time format string

Implementation

String formatTime({String? newTimeFormat}) => _convertTimeString(this, newTimeFormat: newTimeFormat);