Skip to content

Commit 6831aa9

Browse files
authored
Adding default value to bluetooth to fix error loading old configs (#154)
1 parent 3f2044b commit 6831aa9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/core/lib/event.dart

+1
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ class ContextOS extends JSONExtendableImpl {
495495
class ContextNetwork extends JSONExtendableImpl {
496496
bool cellular;
497497
bool wifi;
498+
@JsonKey(defaultValue: false)
498499
bool bluetooth;
499500

500501
ContextNetwork(this.cellular, this.wifi, this.bluetooth, {super.custom});

packages/core/lib/event.g.dart

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)