I did some research on this and thanks to followup by https://github.com/gyrdym in https://github.com/gyrdym/ml_linalg/issues/175 and then even bigger thanks to @mraleph from the Dart team fix this issue should be fixed as of Dart 3.5