dart-lang / leak_tracker

A framework for memory leak tracking for Dart and Flutter applications.
https://pub.dev/packages/leak_tracker
BSD 3-Clause "New" or "Revised" License
396 stars 23 forks source link

Not compatible with specified min Dart version 3.1.x #201

Closed kuhnroyal closed 9 months ago

kuhnroyal commented 10 months ago

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);
                                ^^^^^^^^^^^^