Command:
flutter pub run build_runner build --delete-conflicting-outputs
Deprecated. Use dart run instead.
[INFO] Generating build script completed, took 598ms
[WARNING] ../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/freezed_generator.dart:546:45: Error: Required named parameter 'withNullability' must be provided.
.map((e) => e.getDisplayString())
^
../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/freezed_generator.dart:547:16: Error: The argument type 'List' can't be assigned to the parameter type 'List'.
'List' is from 'dart:core'.
.toList(),
^
../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/templates/parameter_template.dart:16:45: Error: Required named parameter 'withNullability' must be provided.
generics.map((e) => e.getDisplayString()).toList(),
^
../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/templates/parameter_template.dart:16:49: Error: The argument type 'List' can't be assigned to the parameter type 'List'.
'List' is from 'dart:core'.
generics.map((e) => e.getDisplayString()).toList(),
^
../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/tools/type.dart:54:46: Error: Required named parameter 'withNullability' must be provided.
String? displayType = type.getDisplayString();
^
../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/tools/type.dart:97:44: Error: Required named parameter 'withNullability' must be provided.
displayType = modified.getDisplayString();
^
../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/templates/concrete_template.dart:562:47: Error: Required named parameter 'withNullability' must be provided.
String? type = element.type.getDisplayString();
^
[INFO] Precompiling build script... completed, took 1.2s
[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.
Command: flutter pub run build_runner build --delete-conflicting-outputs
Deprecated. Use' can't be assigned to the parameter type 'List'.
dart run
instead. [INFO] Generating build script completed, took 598ms [WARNING] ../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/freezed_generator.dart:546:45: Error: Required named parameter 'withNullability' must be provided. .map((e) => e.getDisplayString()) ^ ../../.pub-cache/hosted/pub.dev/freezed-2.5.7/lib/src/freezed_generator.dart:547:16: Error: The argument type 'ListMy Dart Version: Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision 761747bfc5 (9 weeks ago) • 2024-06-05 22:15:13 +0200 Engine • revision edd8546116 Tools • Dart 3.4.3 • DevTools 2.34.3
I am using latest version of the Freezed 2.5.7