As far as I remember there is a similar thing in the official Dart Code or Dart extension, enable the editor.codeLens option
editor.codeLens