toImagePart method

LLMImagePart toImagePart({
  1. String? mimeType,
})

画像パーツを生成する(バイト列を同期読み込み)。

Implementation

LLMImagePart toImagePart({String? mimeType}) => LLMImagePart.bytes(
      readAsBytesSync(),
      mimeType: mimeType ?? _mimeFromPath(path, 'image/png'),
    );