write method Null safety
- dynamic data
Implementation
void write(Uint8List data) {
if (isValid) {
if (data.length != bytes!.length) throw Exception("Size data not equals size NativeDataStruct");
bytes!.setAll(0, data);
}
}
void write(Uint8List data) {
if (isValid) {
if (data.length != bytes!.length) throw Exception("Size data not equals size NativeDataStruct");
bytes!.setAll(0, data);
}
}