ConvertedController<F, T> constructor

ConvertedController<F, T>(
  1. ValueNotifier<F> other,
  2. BiDirectionalConvert<F, T> convert
)

Implementation

ConvertedController(
    ValueNotifier<F> other, BiDirectionalConvert<F, T> convert)
    : _other = other,
      _convert = convert,
      _value = convert.convertA(other.value) {
  _other.addListener(_onOtherValueChanged);
}