formatPeriod static method

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

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

year - Ano month - Mês

Implementation

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