GPIO.isolate constructor

GPIO.isolate(
  1. String json
)

Duplicates an existing GPIO from a JSON string. This special constructor is used to transfer an existing GPIO to an other isolate.

Implementation

GPIO.isolate(String json)
    : chip = jsonMap(json)['chip'] as int,
      line = jsonMap(json)['line'] as int,
      name = jsonMap(json)['name'] as String,
      path = jsonMap(json)['path'] as String,
      direction = GPIOdirection.values[_jsonMap(json)['direction'] as int],
      _gpioHandle =
          Pointer<Void>.fromAddress(_jsonMap(json)['handle'] as int);