touchpointNamed method

WorldTouchpoint? touchpointNamed(
  1. String name
)

The touchpoint with name, or null.

Implementation

WorldTouchpoint? touchpointNamed(String name) {
  for (final t in touchpoints) {
    if (t.name == name) return t;
  }
  return null;
}