F typedef

F = dynamic Function(int time)

code block to be called when doing the chore

time the index of this time, meaning how many times the chore was done before including this one

Implementation

typedef F(int time);