isDayFormat static method

bool isDayFormat(
  1. String format
)

Check if the date format is for day(contain y、M、d、E) or not.

Implementation

static bool isDayFormat(String format) {
  return format.contains(RegExp(r'[yMdE]'));
}