getTotalMinutes method

int getTotalMinutes(
  1. int totalMinutes,
  2. DateTime enterTime
)

Implementation

int getTotalMinutes(int totalMinutes, DateTime enterTime) {
  var dateNow = DateTime.now();
  var diff = dateNow.difference(enterTime).inMinutes;
  return diff + totalMinutes;
}