How can I write byte array in Dart?
What you are looking for is Uint8List
. It is the equivalent of byte[]
of Java in Dart. Every single value has an equivalent in another language, so byte[]
in a few languages is like:
- Java:
byte[]
- Dart:
Uint8List
- iOS:
FlutterStandardTypedData -> typedDataWithBytes
I recommend looking at the documentation for more: https://flutter.dev/docs/development/platform-integration/platform-channels#codec