DartPad requires localStorage to be enabled code example
Example: DartPad requires localStorage to be enabled
[Chrome]: if third-party cookies are disabled:
> Parameters > Privacy and security > Cookies and other site data >
Add allowed site (dartpad.dev, dart.dev, flutter.dev...)
check "Allow third-party cookies from this site"