ShapeEncode<S extends Shape> constructor

ShapeEncode<S extends Shape>({
  1. S? value,
  2. String? variable,
  3. List<S>? values,
  4. S encoder(
    1. Tuple
    )?,
  5. Map<String, Map<bool, SelectionUpdater<S>>>? updaters,
})

Creates a shape encode.

Implementation

ShapeEncode({
  S? value,
  String? variable,
  List<S>? values, // Only discrete.
  S Function(Tuple)? encoder,
  Map<String, Map<bool, SelectionUpdater<S>>>? updaters,
})  : assert(isSingle([value, variable, encoder])),
      super(
        value: value,
        variable: variable,
        values: values,
        encoder: encoder,
        updaters: updaters,
      );