How can I write byte array in Dart? How can I write byte array in Dart? dart dart

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:

  1. Java: byte[]
  2. Dart: Uint8List
  3. iOS: FlutterStandardTypedData -> typedDataWithBytes

I recommend looking at the documentation for more: https://flutter.dev/docs/development/platform-integration/platform-channels#codec