22 Feb 2023
Error: flutter The method 'File.create' has fewer named arguments than those of overridden method 'File.create'
StackOverflow: For me the packages in my pubspec.yaml were all up to date, but the following fixed it:
Delete pubspec.lock.
Run flutter pub get again.
Link: StackOverflow