text method Null safety

Future<int> text(
  1. {dynamic command,
  2. dynamic font,
  3. dynamic size,
  4. dynamic x,
  5. dynamic y,
  6. dynamic data}
)

Implementation

static Future<int> text({command, font, size, x, y, data}) async {
  final int p = await _channel.invokeMethod('text', {
    'command': command,
    'font': font,
    'size': size,
    'x': x,
    'y': y,
    'data': data
  });
  return p;
}