I2C.isolate constructor
I2C.isolate(
- String json
Duplicates an existing I2C from a JSON string. This special constustor is used to transfer an existing I2C to an other isolate.
Implementation
I2C.isolate(String json)
: path = _jsonMap(json)['path'] as String,
busNum = _jsonMap(json)['bus'] as int,
_i2cHandle = Pointer<Void>.fromAddress(_jsonMap(json)['handle'] as int);