YoutubeListBroadcastCommand constructor Null safety

YoutubeListBroadcastCommand()

Implementation

YoutubeListBroadcastCommand() {
  argParser
    ..addOption('part',
        defaultsTo: 'snippet,status,contentDetails',
        help: 'The type of a pre-built template for the broadcast to start')
    ..addOption('broadcast-status',
        // defaultsTo: 'all',
        allowed: ['active', 'all', 'completed', 'upcoming'],
        help:
            'The broadcastStatus parameter filters the API response to only include broadcasts with the specified status.',
        // valueHelp: 'status',
        allowedHelp: {
          'active': 'Return current live broadcasts.',
          'all': 'Return all broadcasts.',
          'completed': 'Return broadcasts that have already ended.',
          'upcoming': 'Return broadcasts that have not yet started.'
        })
    ..addOption('id',
        valueHelp: 'id',
        help:
            'The id parameter specifies a comma-separated list of YouTube broadcast IDs that identify the broadcasts being retrieved. In a liveBroadcast resource, the id property specifies the broadcast\'s ID.')
    ..addOption('broadcast-type',
        defaultsTo: 'event',
        allowed: ['all', 'event', 'persistent'],
        help:
            'The broadcastType parameter filters the API response to only include broadcasts with the specified type. The parameter should be used in requests that set the mine parameter to true or that use the broadcastStatus parameter. The default value is event.',
        valueHelp: 'event',
        allowedHelp: {
          'all': 'Return all broadcasts.',
          'event': 'Return only scheduled event broadcasts.',
          'persistent': 'Return only persistent broadcasts.'
        })
    ..addOption('max-results',
        defaultsTo: '5',
        valueHelp: 'number',
        help:
            'The maxResults parameter specifies the maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 5.');
}