addHours method

DateTime addHours(
  1. int hours
)

Add hours to a DateTime

Implementation

DateTime addHours(int hours) {
  if (this == null) throw Exception("DateTime is null");
  return this!.add(Duration(hours: hours));
}