FSelectManagedControl<T> constructor

const FSelectManagedControl<T>({
  1. FSelectController<T>? controller,
  2. T? initial,
  3. bool? toggleable,
  4. ValueChanged<T?>? onChange,
})

Creates a FSelectControl.

Implementation

const FSelectManagedControl({this.controller, this.initial, this.toggleable, this.onChange})
  : assert(
      controller == null || initial == null,
      'Cannot provide both controller and initial. Pass initial value to the controller.',
    ),
    assert(
      controller == null || toggleable == null,
      'Cannot provide both controller and toggleable. Pass toggleable to the controller.',
    ),
    super._();