getThisMonth static method
获取本月
Implementation
static List<String> getThisMonth(DateTime date) {
int year = date.year, month = date.month;
return [
DateFormat('yyyy-MM-dd').format(DateTime(year, month, 1)),
DateFormat('yyyy-MM-dd').format(DateTime(year, month + 1, 0)),
];
}