GeneratePageCommand constructor

GeneratePageCommand()

Implementation

GeneratePageCommand() {
  argParser.addOption(
    'type',
    abbr: 't',
    allowed: ['smart', 'simple', 'static'],
    defaultsTo: 'smart',
    help: 'The type of page to generate.',
    allowedHelp: {
      'smart': 'A full featured page with ViewBuilder, Notifier, and Union State (Initial/Loading/Success/Error).',
      'simple': 'A page with ViewBuilder, Notifier, and Simple State (Class).',
      'static': 'A stateless page with no Notifier or State.',
    },
  );
}