Skip to content

Commit b95f6b7

Browse files
committed
Adding default value to bluetooth to fix error loading old configs
1 parent 3f2044b commit b95f6b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/core/lib/event.dart

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)