getPositionValues static method

List<String?> getPositionValues(
  1. String shorthandProperty
)

Implementation

static List<String?> getPositionValues(String shorthandProperty) {
  List<String> properties = _splitBySpace(shorthandProperty.trim());

  String? x;
  String? y;
  if (properties.length == 1) {
    x = y = properties[0];
  } else if (properties.length == 2) {
    x = properties[0];
    y = properties[1];
  }

  return [x, y];
}