I2C.isolate constructor
I2C.isolate(
- String json
Duplicates an existing I2C from a JSON string. This special constructor 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),
isolate = true;