formatPeriodReverse static method

String formatPeriodReverse(
  1. int year,
  2. int month
)

Formata um período (ano/mês) para string no formato MM/AAAA

year - Ano month - Mês

Implementation

static String formatPeriodReverse(int year, int month) {
  return '${month.toString().padLeft(2, '0')}/$year';
}