Fix for new Dart SDK: getAttachStackTrace deprecated