Beacon constructor

Beacon({
  1. required String id,
  2. required String name,
  3. required Point position,
  4. BeaconsConfiguration configuration = const BeaconsConfiguration(),
})

Implementation

Beacon(
    {required this.id,
    required this.name,
    required this.position,
    this.configuration = const BeaconsConfiguration()})
    : assert(id.isNotEmpty, "Beacon id cannot be empty."),
      assert(name.isNotEmpty, "Beacon name cannot be empty.");