build<T> method
CObserver<T>
build<T>(
- ObserverBuilder<
T> builder, { - bool animate = false,
- WhenBuild<
T> ? when, - AnimatedSwitcherTransitionBuilder transitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
- Duration duration = const Duration(milliseconds: 300),
Use to create CObserver by ObservableValue
Implementation
CObserver<T> build<T>(
ObserverBuilder<T> builder, {
bool animate = false,
WhenBuild<T>? when,
AnimatedSwitcherTransitionBuilder transitionBuilder =
AnimatedSwitcher.defaultTransitionBuilder,
Duration duration = const Duration(milliseconds: 300),
}) {
return CObserver<T>(
observable: this as ObservableValue<T>,
animate: animate,
transitionBuilder: transitionBuilder,
duration: duration,
when: when,
builder: builder,
);
}