getDurections method

dynamic getDurections()

Implementation

getDurections() {
  String end = _initial.value['End'];
  String start = _initial.value['Start'];

  final result = timeToSeconds(end) - timeToSeconds(start);
  if (result == 0) {
    return 1;
  }

  return result;
}