isTimeFormat static method

bool isTimeFormat(
  1. String format
)

Check if the date format is for time(contain H、m、s) or not.

Implementation

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