encodeBitmap static method

Future<Uint8List> encodeBitmap(
  1. String contents,
  2. BarcodeFormat format,
  3. int width,
  4. int height,
)

Implementation

static Future<Uint8List> encodeBitmap(String contents, BarcodeFormat format, int width, int height) async =>
    await _channel.invokeMethod('encodeBitmap', {
      'contents': contents,
      'format': describeEnum(format).toUpperCase(),
      'width': width,
      'height': height,
    });