getOnlyFormattedDate method

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

Implementation

String getOnlyFormattedDate({String? from}) {
  initializeDateFormatting("pt_BR");
  var dateTime = from != null ? DateTime.parse(from) : DateTime.now();
  return DateFormat("dd/MM/yyyy").format(dateTime);
}