generate abstract method
Future<Uint8List>
generate({
- required String prompt,
- ImageModel? model,
- bool? highQuality,
- ImageStyle? style,
- ImageSize? size,
- void onDownloadProgress(
- double progress
Generates a image using a prompt.
Dalle-e-2 only parameters:
size
with dimensions: 256x256 or 512x512
Dall-e-3 only parameters:
highQuality
= truesize
with dimensions: 1792x1024 or 1024x1792style
= 'Natural'
Implementation
Future<Uint8List> generate({
required String prompt,
ImageModel? model,
bool? highQuality,
ImageStyle? style,
ImageSize? size,
void Function(double progress)? onDownloadProgress,
});