Error in latest version flutter 3.24
AppData/Local/Pub/Cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart:88:23: Error: The method 'hashValues' isn't defined for the class 'SlidableRatioNotification'.
- 'SlidableRatioNotification' is from 'package:flutter_slidable/src/notifications_old.dart' ('AppData/Local/Pub/Cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. int get hashCode => hashValues(tag, ratio);
Solved Just upgrade gradle in Gradle wrapper distributionUrl=https://services.gradle.org/distributions/gradle-8.4-all.zip
This looks like a duplicate of #488, and it doesn't make any sense that upgrading Gradle would fix it.
../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart:88:23: Error: The method 'hashValues' isn't defined for the class 'SlidableRatioNotification'.
- 'SlidableRatioNotification' is from 'package:flutter_slidable/src/notifications_old.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. int get hashCode => hashValues(tag, ratio); ^^^^^^^^^^
gradle version distributionUrl=https://services.gradle.org/distributions/gradle-8.9-all.zip on Flutter Version
Flutter 3.27.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision 17025dd882 (2 weeks ago) • 2024-12-17 03:23:09 +0900 Engine • revision cb4b5fff73 Tools • Dart 3.6.0 • DevTools 2.40.2
Same issue here