getAxis method

Axis? getAxis(
  1. String? value
)

Implementation

Axis? getAxis(String? value) {
  if (value == "vertical") return Axis.vertical;
  if (value == "horizontal") return Axis.horizontal;
  return null;
}