ControlEvent.data
should be of type Optional[str]
and default to None
#4786
Labels
enhancement
Improvement/Optimization
At the moment
ControlEvent.data
(or preciselyEvent.data
) is of type string and defaults to an empty string. This is misleading as one could think that's an actual data which was passed, whereas, seeingNone
will be a good indication that nothing was passed.flet/sdk/python/packages/flet/src/flet/core/control_event.py
Lines 4 to 6 in cc998cd
Test Code
The text was updated successfully, but these errors were encountered: