isSameMonth method Null safety

bool isSameMonth(
  1. DateTime other
)