isInThisGap method

bool isInThisGap(
  1. DateTime timePoint,
  2. int gap
)

Implementation

bool isInThisGap(DateTime timePoint, int gap) {
  final dif = timePoint
      .copyWith(second: 00)
      .difference(start.copyWith(second: 00))
      .inMinutes;
  return dif >= 0 && dif <= gap;
}