See: - https://github.com/flutter/flutter/issues/142521#issuecomment-2305916631 - https://github.com/Dart-Code/Dart-Code/issues/5226 **We should also remove the workaround in dc897c3cd7e5486b373560a52bc98fd630263f8d once this is done.**