comparisonOptions property

  1. @Input()
set comparisonOptions (List<ComparisonOption> options)

ComparisonOptions the user can choose from.

By default, this is "Previous period", "Previous year", and "Custom". This can only be set once. Null or empty values are ignored.

Implementation

@Input()
set comparisonOptions(List<ComparisonOption> options) {
  if (options.isNotEmpty) {
    // User cannot change this value after setting it.
    assert(_comparisonOptions == null || _comparisonOptions == options);
    _comparisonOptions = options;
    model.supportedComparisonOptions = _comparisonOptions;
  }
}