Axis toAxis(String? direction) => direction?.toLowerCase() == "horizontal" ? Axis.horizontal : Axis.vertical;