toLocationSymbol static method

String toLocationSymbol(
  1. int locationValue
)

Converts the location value to a location symbol, for example, EXTERIOR => 'e' .

@param locationValue either EXTERIOR, BOUNDARY, INTERIOR or NONE @return either 'e', 'b', 'i' or '-'

Implementation

static String toLocationSymbol(int locationValue) {
  switch (locationValue) {
    case EXTERIOR:
      return 'e';
    case BOUNDARY:
      return 'b';
    case INTERIOR:
      return 'i';
    case NONE:
      return '-';
  }
  throw ArgumentError("Unknown location value: $locationValue");
}