launchChooser method

Future<void> launchChooser(
  1. String title
)

Launch the intent with 'createChooser(intent, title)'.

This works only on Android platforms.

Implementation

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

  final buildArguments = _buildArguments();
  buildArguments['chooserTitle'] = title;
  await _channel!.invokeMethod<void>(
    'launchChooser',
    buildArguments,
  );
}