barcode method

  1. @override
Future<bool> barcode(
  1. int x,
  2. int y,
  3. BarcodeType barcodeType,
  4. int height,
  5. HumanReadable readable,
  6. Rotation rotation,
  7. int narrow,
  8. int wide,
  9. String content,
)
override

Implementation

@override
Future<bool> barcode(
  int x,
  int y,
  BarcodeType barcodeType,
  int height,
  HumanReadable readable,
  Rotation rotation,
  int narrow,
  int wide,
  String content,
) async {
  return await methodChannel.invokeMethod<bool>('barcode', <String, dynamic>{
        'x': x,
        'y': y,
        'barcodeType': _barcodeTypeToValue(barcodeType),
        'height': height,
        'readable': _humanReadableToValue(readable),
        'rotation': _rotationToDegrees(rotation),
        'narrow': narrow,
        'wide': wide,
        'content': content,
      }) ??
      false;
}