sendBroadcast method

Future<void> sendBroadcast()

Sends intent as broadcast.

This works only on Android platforms.

Implementation

Future<void> sendBroadcast() async {
  if (!_platform.isAndroid) {
    return;
  }

  await _channel.invokeMethod<void>(
    'sendBroadcast',
    _buildArguments(),
  );
}