getOptionPwaStrategy method

String getOptionPwaStrategy()

Gets the PWA strategy option formatted for command-line usage.

Returns:

  • '--pwa-strategy=value' if the option is provided
  • Empty string if the option is not provided

Example:

final pwaStrategyFlag = argResults.getOptionPwaStrategy();
// Returns '--pwa-strategy=offline-first' or ''

Implementation

String getOptionPwaStrategy() => this?['pwa-strategy'] != null
    ? '--pwa-strategy=${this!['pwa-strategy']}'
    : '';