dart_beacon
dart_beacon copied to clipboard
docs: Beacon.hashSet and Beacon.hashMap usage is incorrect in documentation
I love this package so much ! Noticed one thing in docs:
Issue: hashSet documentation is empty and hashMap displays list usage
var nums = Beacon.list<int>([1, 2, 3]);
Beacon.effect(() {
print(nums.value); // Outputs: [1, 2, 3]
});
nums.add(4); // Outputs: [1, 2, 3, 4]
nums.remove(2); // Outputs: [1, 3, 4]
Proposed Fix:
Demonstrate hashMap and hashSet usage i.e.
final beaconMap = Beacon.hashMap<String, Int> (<String, Int> {});
beaconMap["MyElement"] = 999;