printAreaSize static method

Future<int> printAreaSize({
  1. dynamic offset,
  2. dynamic horizontal,
  3. dynamic vertical,
  4. dynamic height,
  5. dynamic qty,
})

下面是之前写的安卓调用原声接口

Implementation

// 设置标签高度
static Future<int> printAreaSize(
    {offset, horizontal, vertical, height, qty}) async {
  final int p = await _channel.invokeMethod('printAreaSize', {
    'offset': offset,
    'horizontal': horizontal,
    'vertical': vertical,
    'height': height,
    'qty': qty
  });
  return p;
}