getOptionFlavor method

String getOptionFlavor({
  1. required String defaultTo,
})

Gets the flavor option value.

Returns the selected application flavor.

Example:

final flavor = argResults.getOptionFlavor(defaultTo: 'development');

Implementation

String getOptionFlavor({required String defaultTo}) =>
    this?['flavor'] ?? defaultTo;