BroadcastReceiver constructor

BroadcastReceiver({
  1. required List<String> names,
})

Creates a new BroadcastReceiver, which subscribes to the given names.

At least one name needs to be provided.

Implementation

BroadcastReceiver({required this.names})
    : assert(names.length > 0),
      _id = ++_index;