gpioEdge static method

MraaGpioEdge gpioEdge(
  1. int edge
)

Implementation

static MraaGpioEdge gpioEdge(int edge) {
  if (byCode.isEmpty) {
    for (final edge in MraaGpioEdge.values) {
      byCode[edge.code] = edge;
    }
  }

  final ret = byCode.containsKey(edge) ? byCode[edge] : MraaGpioEdge.none;
  return ret!;
}