toImagePart method
画像パーツを生成する(バイト列を同期読み込み)。
Implementation
LLMImagePart toImagePart({String? mimeType}) => LLMImagePart.bytes(
readAsBytesSync(),
mimeType: mimeType ?? _mimeFromPath(path, 'image/png'),
);
画像パーツを生成する(バイト列を同期読み込み)。
LLMImagePart toImagePart({String? mimeType}) => LLMImagePart.bytes(
readAsBytesSync(),
mimeType: mimeType ?? _mimeFromPath(path, 'image/png'),
);