'Flutter null safety plugin_platform_interface

I have this error,

Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

 - package:plugin_platform_interface

the problem is I didn't use this package and I don't have it in the dependencies or lib, so how to solve it?



Solution 1:[1]

Add this to your pubspec.yaml file and click/ run pub get. Then try to build again!

 plugin_platform_interface: ^2.1.2

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 GoVindh