You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm upgrading fl_chart form 0.55 to 0.69, I have a question regarding the port of optional named parameters into non optional with defaults values classes.
constFlChartStuff({
// v0.55double? argInV55, // with default value to 22 applied later in the constructor signature// v0.66double argInV66 =22,
});
This does maybe not look like a big change but it does present a lot of new constrains...
For example in SideTitles, before the signature was this one :
constSideTitles({
// ...double? reservedSize, // with default value to 22// ...
});
Hello,
I'm upgrading fl_chart form
0.55
to0.69
, I have a question regarding the port of optional named parameters into non optional with defaults values classes.This does maybe not look like a big change but it does present a lot of new constrains...
For example in
SideTitles
, before the signature was this one :Now it's that version :
Before, the signature allowed us to pass null params and then it was very handy to create a new instance from wrapped configuration in widgets, e.g.
but now I only see 2 solutions to achieve the same behavior, but both seems ugly
The first one imply to call different constructor regarding the input value
And the other one implied to pass the default lib value in my code...
How will you deal with that kind of situation with the new version ?
Thx,
The text was updated successfully, but these errors were encountered: