getTask method Null safety

INotifiable? getTask()

Gets the INotifiable object that receives notifications from this timer.

Returns the INotifiable object or null if it is not set.