*<Null safety>*
T XUnionFactory (int index, Object data)
typedef XUnionFactory<T> = T Function(int index, Object data);