yBroadcast_register method

void yBroadcast_register(
  1. String action,
  2. dynamic callback(
    1. Map<String, dynamic>? map
    )
)

Implementation

void yBroadcast_register(String action, Function(Map<String, dynamic>? map) callback) {
  _broadcastReceivers[action] = callback;
}