tanggal function Null safety

String tanggal(
  1. DateTime date,
  2. {bool shortMonth = false}
)

Convert DateTime to Indonesia specific date

Implementation

String tanggal(DateTime date, {bool shortMonth = false}) {
  return "${date.day} ${_convertToLocalMonth(date.month, shortMonth)} ${date.year}";
}