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
That in turn means that the library API now lets you pass in a language version. In dart_style 2.3.7 you can pass in a language version but the parameter is optional. In the forthcoming 3.0.0 release, that parameter will become mandatory. If you can, please update drift to start passing in a language version. If you know the language version of the code being parsed, pass that in. If you just want to always format the code at the latest language version, you can use DartFormatter.latestLanguageVersion. When you do, make sure to update your dependency constraint on dart_style to ^2.3.7.
Thank you!
The text was updated successfully, but these errors were encountered:
In drift_dev/lib/src/backends/build/drift_builder.dart, a call to
DartFormatter()
from the dart_style package is being used to format the generated code.We're in the process of moving dart_style to a new formatting style. That involves making the formatter aware of the language version of what it's formatting.
That in turn means that the library API now lets you pass in a language version. In dart_style 2.3.7 you can pass in a language version but the parameter is optional. In the forthcoming 3.0.0 release, that parameter will become mandatory. If you can, please update drift to start passing in a language version. If you know the language version of the code being parsed, pass that in. If you just want to always format the code at the latest language version, you can use
DartFormatter.latestLanguageVersion
. When you do, make sure to update your dependency constraint on dart_style to^2.3.7
.Thank you!
The text was updated successfully, but these errors were encountered: