build<T> method

CObserver<T> build<T>(
  1. ObserverBuilder<T> builder, {
  2. bool animate = false,
  3. WhenBuild<T>? when,
  4. AnimatedSwitcherTransitionBuilder transitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
  5. 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,
  );
}