getOnlyFormattedTime method

String getOnlyFormattedTime({
  1. String? from,
})

Implementation

String getOnlyFormattedTime({String? from}) {
  initializeDateFormatting("pt_BR");
  var dateTime = from != null ? DateTime.parse(from) : DateTime.now();
  return DateFormat("HH:mm:ss").format(dateTime);
}