the function to get marker widget
typedef ListMarker = Widget? Function(bool isOrdered, int depth, int index);