isSameHour method Null safety

bool isSameHour(
  1. DateTime other
)