Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. and Try correcting the name to the name of an existing method, or defining a method named 'hashList'.
../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/connector_theme.dart:86:12: Error: The method 'hashValues' isn't defined for the class 'ConnectorThemeData'.
- 'ConnectorThemeData' is from 'package:timelines/src/connector_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/connector_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. return hashValues( ^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/indicator_theme.dart:80:23: Error: The method 'hashValues' isn't defined for the class 'IndicatorThemeData'.
- 'IndicatorThemeData' is from 'package:timelines/src/indicator_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/indicator_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. int get hashCode => hashValues(color, size, position); ^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/timeline_theme.dart:346:12: Error: The method 'hashList' isn't defined for the class 'TimelineThemeData'.
- 'TimelineThemeData' is from 'package:timelines/src/timeline_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/timeline_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashList'. return hashList(values);
i was just about to post it, Please fix this
I am also getting the same issue and it's blocking all my builds :(
I had the same error in flutter 3.27.1 and I replaced this:
hashList -> Object.hashAll
hashValues -> Object.hash
and it worked for me
../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/connector_theme.dart:86:12: Error: The method 'hashValues' isn't defined for the class 'ConnectorThemeData'.
- 'ConnectorThemeData' is from 'package:timelines/src/connector_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/connector_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. return hashValues( ^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/indicator_theme.dart:80:23: Error: The method 'hashValues' isn't defined for the class 'IndicatorThemeData'.
- 'IndicatorThemeData' is from 'package:timelines/src/indicator_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/indicator_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. int get hashCode => hashValues(color, size, position); ^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/timeline_theme.dart:346:12: Error: The method 'hashList' isn't defined for the class 'TimelineThemeData'.
- 'TimelineThemeData' is from 'package:timelines/src/timeline_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/timeline_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashList'. return hashList(values);
To use this Dart 3-compatible version of the timelines package, follow these steps:
Open your pubspec.yaml file. Add the following dependency: yaml Copy Edit
dependencies:
timelines:
git:
url: https://github.com/IamSZaidH/timelines
ref: main # Use the branch containing the Dart 3 compatibility fixes
Fetch the updated package by running:
flutter pub get
Now you can use the timelines package in your Flutter project as usual.
dependencies: timelines: git: url: https://github.com/IamSZaidH/timelines ref: main # Use the branch containing the Dart 3 compatibility fixes
this worked for me
my fork work and u can use it. url : https://github.com/gailansoran4/timelines.git
Or you can use https://pub.dev/packages/timelines_plus
Can confirm that timelines_plus work with no issues for me
I had the same error in flutter 3.27.1 and I replaced this:
hashList -> Object.hashAll hashValues -> Object.hashand it worked for me
Thank @thaliachitziou99 , its work for me. just replace code at :
- timelines-0.1.0/lib/src/connector_theme.dart
- timelines-0.1.0/lib/src/indicator_theme.dart
- timelines-0.1.0/lib/src/timeline_theme.dart