addHours method

DateTime addHours(
  1. int hours
)

addHours(): Adds a specified number of hours to a DateTime.

Implementation

DateTime addHours(int hours) {
  return add(Duration(hours: hours));
}