selectBackgroundModes method

List<String> selectBackgroundModes()

Implementation

List<String> selectBackgroundModes() {
  final options = [
    'fetch',
    'remote-notification',
    'location',
    'audio',
    'processing',
  ];

  final selected = MultiSelect(
    prompt: 'Select Background Modes',
    options: options,
  ).interact();

  return selected.map((i) => options[i]).toList();
}