attach method

  1. @override
Widget? attach(
  1. BuildContext context,
  2. ImageLayoutController<T> controller
)
override

Implementation

@override
Widget? attach(
  BuildContext context,
  ImageLayoutController<T> controller,
) {
  switch (controller.layer) {
    case ImageLayoutLayers.x:
      return _LayerX<T>(controller: controller);
    case ImageLayoutLayers.x2:
      return _LayerX2<T>(controller: controller);
    case ImageLayoutLayers.x3:
      return _LayerX3<T>(controller: controller);
    case ImageLayoutLayers.x4:
      return _LayerX4<T>(controller: controller);
    case ImageLayoutLayers.x5:
      return _LayerX5<T>(controller: controller);
    case ImageLayoutLayers.x6:
      return _LayerX6<T>(controller: controller);
    case ImageLayoutLayers.xn:
      return _LayerXn<T>(controller: controller);
  }
}