Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyus committed Mar 6, 2024
1 parent 5148a91 commit 52a2c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ Set the global `BeaconObserver` instance to get notified of all beacon creation,
You can create your own observer by implementing `BeaconObserver` or use the provided logging observer, which logs to the console. Provide a `name` to your beacons to make it easier to identify them in the logs.

```dart
BeaconObserver.instance = LoggingObserver();
BeaconObserver.instance = LoggingObserver(); // or BeaconObserver.useLogging()
var a = Beacon.writable(10, name: 'a');
var b = Beacon.writable(20, name: 'b');
Expand Down

0 comments on commit 52a2c84

Please sign in to comment.