Skip to content

fix: Error on empty action json #105

Open
@divyanshub024

Description

@divyanshub024

Description

Getting error type '_Map<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>?' in type cast<…> when passed an empty action json.

{
              "type": "textButton",
              "onPressed": {},
              "child": {
                "type": "text",
                "data": "Forgot password?",
                "style": {
                  "fontSize": 15,
                  "fontWeight": "w500",
                  "color": "#4745B4"
                }
              }
            }

Expected Behavior

{} Empty JSON should act like a null action on call.
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions