subtractHours method

DateTime subtractHours(
  1. int hours
)

subtractHours(): Subtracts a specified number of hours from a DateTime.

Implementation

DateTime subtractHours(int hours) {
  return subtract(Duration(hours: hours));
}