With Dart 3.1.x (tested with 3.1.5) there is an error, the min SDK constraint probably needs to be raised.
../../../../.pub-cache/hosted/pub.dev/leak_tracker-10.0.0/lib/src/leak_tracking/primitives/_retaining_path/_retaining_path_isolate.dart:21:26: Error: Member not found: 'Service.getObjectId'.
final objRef = Service.getObjectId(object);
^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/leak_tracker-10.0.0/lib/src/leak_tracking/primitives/_retaining_path/_retaining_path_isolate.dart:27:31: Error: Member not found: 'Service.getIsolateId'.
final isolateId = Service.getIsolateId(Isolate.current);
^^^^^^^^^^^^
With Dart 3.1.x (tested with 3.1.5) there is an error, the min SDK constraint probably needs to be raised.