BoundedImagePreview.bytes constructor
const
BoundedImagePreview.bytes({
- Key? key,
- required Uint8List bytes,
- ChatInputBudget inputBudget = const ChatInputBudget(),
- ChatImageDecodeBudgetLedger? imageDecodeLedger,
- BoundedImageDecoder decoder = const DartUiBoundedImageDecoder(),
- BoundedImageReservationAcquirer? reservationAcquirer,
- double? height = 132,
- BoxFit fit = BoxFit.contain,
Implementation
const BoundedImagePreview.bytes({
super.key,
required Uint8List this.bytes,
this.inputBudget = const ChatInputBudget(),
this.imageDecodeLedger,
this.decoder = const DartUiBoundedImageDecoder(),
this.reservationAcquirer,
this.height = 132,
this.fit = BoxFit.contain,
}) : assert(
imageDecodeLedger != null || reservationAcquirer != null,
'A shared image decode ledger or test reservation acquirer is required.',
),
data = null;