FindDropdownBloc<T> constructor

FindDropdownBloc<T>({
  1. T? seedValue,
  2. String? validate(
    1. T selected
    )?,
})

Implementation

FindDropdownBloc({T? seedValue, String? Function(T selected)? validate}) {
  if (seedValue != null) selected$.add(seedValue);
  if (validate != null) validateMessageOut = selected$.distinct().map(validate).distinct();
}