JavascriptChannel constructor

JavascriptChannel({
  1. required String name,
  2. ValueChanged<String>? onMessageReceived,
  3. String? source,
})

Implementation

JavascriptChannel({required this.name, this.onMessageReceived, this.source})
    : assert(_validChannelNames.hasMatch(name));