Method not found: 'guard'. return internals.guard(


i am new to flutter.when i run this code on flutter web this error occurs.

some one help to get rid of the problem


If you updated your flutter sdk to Beta channel, Downgrade your flutter sdk to Stable Channel. Current stable version is 2.10.3

Flutter downgrade command

flutter downgrade v2.10.3

and than

Downgrade flutter to version 2.10.3
? [y|n]:
Type y for Yes to confirm changes

Answered By – Anandh Krishnan

Answer Checked By – Willingham (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *