Data type with nullable integer/bool

Actions & Logic

I've got a data type (let's call it Foo) with the following attributes:

{
    "name": String,
    "percentage": int,
    "is_active": Boolean,
}

This is problematic when the data type attributes are instantiated with null values. For strings the problem is more manageable because you can check if the value is "null". For integers, you can set a dummy default (e.g: 12345678987654321) and check against this value. But how do you guys handle booleans? is_active gets initialised to False if it's passed in null.

Honestly this is kind of a bummer in FF. Kind of a basic feature that people seem to be working around but it offers quite a bad experience πŸ˜”

What have you tried so far?

.

Did you check FlutterFlow's Documentation for this topic?
No
4
1 reply