Whenever I run my app this error comes up. Although, It does not affect any working of the app and the app works as I expect it to be. But I want to remove and know why this error occurs. As I have read further this error was caused by Firebase performance.
It was the problem faced in older versions of flutter. This issue was being tracked here: github.com/FirebaseExtended/flutterfire/issues/7465 and this has been closed. Upgrading your flutter to latest version will solve this issue.