// MARK: - Shared Builder typedef IndexedCallback = void Function(int index); typedef IndexedValueCallback = void Function(T value, int index);