printLabel method

Future printLabel(
  1. Map<String, dynamic> config,
  2. List<LineText> data
)

Implementation

Future<dynamic> printLabel(Map<String, dynamic> config, List<LineText> data) {
  Map<String, Object> args = Map();
  args['config'] = config;
  args['data'] = data.map((m) {
    return m.toJson();
  }).toList();

  _channel.invokeMethod('printLabel', args);
  return Future.value(true);
}