toList method

  1. @override
List<YearMonth> toList({
  1. bool growable = false,
})
override

toList with orded by the ascending YearMonth value

And default growable is false

Implementation

@override
List<YearMonth> toList({bool growable = false}) {
  List<YearMonth> _l = _ymr.toList();
  _l.sort((a, b) => b.compareTo(a));
  return List.from(_l, growable: growable);
}