WriterWidget constructor

const WriterWidget({
  1. Key? key,
  2. String? text,
  3. int format = Format.qrCode,
  4. int height = 120,
  5. int margin = 0,
  6. EccLevel eccLevel = EccLevel.low,
  7. Messages messages = const Messages(),
  8. dynamic onSuccess(
    1. Encode result,
    2. Uint8List? bytes
    )?,
  9. dynamic onError(
    1. String error
    )?,
})

Implementation

const WriterWidget({
  super.key,
  this.text,
  this.format = Format.qrCode,
  this.height = 120, // Width is calculated from height and format ratio
  this.margin = 0,
  this.eccLevel = EccLevel.low,
  this.messages = const Messages(),
  this.onSuccess,
  this.onError,
});