Closed herowws closed 1 year ago
Uint8List 是实现了 List
abstract class Uint8List implements List<int>, _TypedIntList {
....
}
Uint8List来自于:library dart.typed_data;
测试代码:
final Response<dynamic> resp = await Client().putObject(
Uint8List.fromList("aaa".codeUnits),
"test.txt"
);
await Client().putObject( bytes, "test.txt", onSendProgress: (count, total) { debugPrint("sent = $count, total = $total"); }, onReceiveProgress: (count, total) { debugPrint("received = $count, total = $total"); } );