addMessageChannel method

  1. @override
Future<bool> addMessageChannel(
  1. String namespace
)
override

Registers a custom Cast namespace for the current and future sessions.

Implementation

@override
Future<bool> addMessageChannel(String namespace) async {
  return await _channel.invokeMethod<bool>(
        'addMessageChannel',
        <String, dynamic>{'namespace': namespace},
      ) ??
      false;
}