barcode method Null safety

Future<int?> barcode(
  1. {dynamic command,
  2. dynamic type,
  3. dynamic width,
  4. dynamic ratio,
  5. dynamic height,
  6. dynamic x,
  7. dynamic y,
  8. dynamic undertext,
  9. dynamic number,
  10. dynamic size,
  11. dynamic offset,
  12. dynamic data}
)

Implementation

static Future<int?> barcode(
    {command,
    type,
    width,
    ratio,
    height,
    x,
    y,
    undertext,
    number,
    size,
    offset,
    data}) async {
  final int p = await _channel.invokeMethod('barcode', {
    'command': command,
    'type': type,
    'width': width,
    'ratio': ratio,
    'height': height,
    'x': x,
    'y': y,
    'undertext': undertext,
    'number': number,
    'size': size,
    'offset': offset,
    'data': data
  });
  return p;
}