renderBarCode method

  1. @override
Future<void> renderBarCode(
  1. String code,
  2. BarcodeStyle style
)
override

在画布上绘制条形码.

Implementation

@override
Future<void> renderBarCode(String code, BarcodeStyle style) async {
  _methodChannel.invokeMethod(Constants.METHOD_CANVAS_RENDER_BARCODE, {
    ParamConstants.TEXT: code,
    ParamConstants.STYLE: jsonEncode(style.toJson())
  });
}