Rename subDir to dir in initFlutter, treat as relative or absolute#293
Rename subDir to dir in initFlutter, treat as relative or absolute#293jheld wants to merge 1 commit intoIO-Design-Team:mainfrom
Conversation
|
This would be a breaking change. If you need more control, you can create your own init method that makes the same calls as initFlutter. |
For curiosity sake, how is this a breaking change? null is treated the same, and non-absolute paths are treated the same. And the variable is only a positional argument. Is there concern that people are passing in absolute (e.g. leading And as far as breaking changes go, then increment the version to make it clear it's a breaking change - how can this change be so controversial? |
|
You're correct sorry. I missed that it is a positional argument not a named one. I'll take another look next week. |
The concept here is mostly related to wanting more control over where the hive files are actually stored. Most likely the user would be choosing a dart built-in directory, but in the spirit of giving power back to the user, it seems simplest to base their decision on whether or not the path is relative (and continuing to treat the default
nullas relative for backwards compatibility/sanity).