title method

String title([
  1. String? locale
])

Returns the month title based on locale

Implementation

String title([String? locale]) {
  final datetime = Date.epoch.setMonth(number).asDateTime;
  return DateFormat('MMMM', locale).format(datetime);
}