getReactiveView method

Widget getReactiveView(
  1. Widget view
)

Implementation

Widget getReactiveView(Widget view) {
  // wrap in visibility detector?
  if (needsVisibilityDetector) {
    view = VisibilityDetector(
        key: ObjectKey(this),
        onVisibilityChanged: onVisibilityChanged,
        child: view);
  }

  // wrap in tooltip?
  if (tipModel != null) view = TooltipView(tipModel!, view);

  // droppable?
  if (droppable && view is! DroppableView) {
    view = DroppableView(this, view);
  }

  // draggable?
  if (draggable && view is! DraggableView) {
    view = DraggableView(this, view);
  }

  // wrap animations.
  if (animations != null) {
    var animations = this.animations!.reversed;
    for (var model in animations) {
      view = model.getAnimatedView(view);
    }
  }
  return view;
}