ConvertedController<F, T> constructor
ConvertedController<F, T> (
- ValueNotifier<
F> other, - BiDirectionalConvert<
F, T> convert
Creates a ConvertedController.
Parameters:
other(ValueNotifier<F>, required): Source value notifier.convert(BiDirectionalConvert<F, T>, required): Bidirectional converter.
Implementation
ConvertedController(
ValueNotifier<F> other, BiDirectionalConvert<F, T> convert)
: _other = other,
_convert = convert,
_value = convert.convertA(other.value) {
_other.addListener(_onOtherValueChanged);
}