AIImageData.fromBytes constructor

AIImageData.fromBytes(
  1. Uint8List bytes
)

从iOS的二进制数据创建

Implementation

factory AIImageData.fromBytes(Uint8List bytes) {
  return AIImageData(
    bytes: bytes,
    size: bytes.length,
    source: ImageDataSource.ios,
  );
}