setMin method

DateTime setMin(
  1. int min
)

Implementation

DateTime setMin(int min) {
  var d = dateToString(this, pattern: "yyyy/MM/dd HH:mm");

  return strToDate("${d.split(":")[0]}:${min.toString().padLeft(2, "0")}}",
      pattern: "yyyy/MM/dd HH:mm");
}