attach method

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

Implementation

@override
Widget? attach(BuildContext context, T controller) {
  return controller.orientation == Axis.vertical
      ? Column(
          mainAxisAlignment: controller.mainGravity,
          mainAxisSize: controller.mainAxisSize,
          crossAxisAlignment: controller.crossGravity,
          textBaseline: controller.textBaseline,
          textDirection: controller.textDirection,
          verticalDirection: controller.verticalDirection,
          children: controller.children,
        )
      : Row(
          mainAxisAlignment: controller.mainGravity,
          mainAxisSize: controller.mainAxisSize,
          crossAxisAlignment: controller.crossGravity,
          textBaseline: controller.textBaseline,
          textDirection: controller.textDirection,
          verticalDirection: controller.verticalDirection,
          children: controller.children,
        );
}