addOrSubtractMinutes method

DateTime addOrSubtractMinutes(
  1. int minutes
)

Adds or subtracts the specified number of minutes from this DateTime. Using a positive value (e.g., 1) adds minutes, while a negative value (e.g., -1) subtracts minutes.

Implementation

DateTime addOrSubtractMinutes(int minutes) => add(Duration(minutes: minutes));