BoundedImagePreview.bytes constructor

const BoundedImagePreview.bytes({
  1. Key? key,
  2. required Uint8List bytes,
  3. ChatInputBudget inputBudget = const ChatInputBudget(),
  4. ChatImageDecodeBudgetLedger? imageDecodeLedger,
  5. BoundedImageDecoder decoder = const DartUiBoundedImageDecoder(),
  6. BoundedImageReservationAcquirer? reservationAcquirer,
  7. double? height = 132,
  8. 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;