Run dart analyze --fatal-infos .
Analyzing ....
info - lib/src/generic_function_type.dart:103:62 - 'element' is deprecated and shouldn't be used. Use element2 instead. Try replacing the use of the deprecated member with the replacement. - deprecated_member_use
info - lib/src/generic_function_type.dart:107:47 - 'element' is deprecated and shouldn't be used. Use element2 instead. Try replacing the use of the deprecated member with the replacement. - deprecated_member_use
info - lib/src/valid_json_utils.dart:103:14 - 'element' is deprecated and shouldn't be used. Use element2 instead. Try replacing the use of the deprecated member with the replacement. - deprecated_member_use
info - lib/src/valid_json_utils.dart:103:50 - 'element' is deprecated and shouldn't be used. Use element2 instead. Try replacing the use of the deprecated member with the replacement. - deprecated_member_use
4 issues found.
Fix failing CI:
https://github.com/GoogleCloudPlatform/functions-framework-dart/runs/7822753655?check_suite_focus=true