ChannelAttr<AV> constructor

ChannelAttr<AV>({
  1. String? variable,
  2. List<AV>? values,
  3. List<double>? stops,
  4. AV? value,
  5. AV encoder(
    1. Tuple
    )?,
  6. Map<String, Map<bool, SelectionUpdater<AV>>>? updaters,
})

Creates a channel aesthetic attribute.

Implementation

ChannelAttr({
  this.variable,
  this.values,
  this.stops,
  AV? value,
  AV Function(Tuple)? encoder,
  Map<String, Map<bool, SelectionUpdater<AV>>>? updaters,
})  : assert(values == null || values.length >= 2),
      super(
        value: value,
        encoder: encoder,
        updaters: updaters,
      );