Callback function that accepts the index of moment and returns its' Duration
typedef Duration MomentDurationGetter(int? index);