I'm trying to pass custom data type (Model) in page parameter of screen
after adding Product Model as page parameter not able run project it gives following error below:
78 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated
for more information.
Launching lib/main.dart on Web Server in debug mode...
Waiting for connection from debug service on Web Server...
lib/flutter_flow/nav/nav.dart:113:29: Error: The argument type 'ProductStruct Function(Map<String, dynamic>)' can't be assigned to the parameter type 'List<String>?'.
- 'ProductStruct' is from 'package:ecommerce_app/backend/schema/structs/product_struct.dart' ('lib/backend/schema/structs/product_struct.dart').
- 'Map' is from 'dart:core'.
- 'List' is from 'dart:core'.
ProductStruct.fromSerializableMap,
^
Waiting for connection from debug service on Web Server... 47.3s
Failed to compile application.