print static method

Future<String?> print(
  1. String text, {
  2. int? width,
  3. String? ipAddress,
})

Print to the first connected bluetooth printer

Implementation

static Future<String?> print(
  String text, {
  int? width,
  String? ipAddress,
}) async {
  final String? version = await _channel.invokeMethod('print', {
    "text": text,
    if (ipAddress != null) "ip_address": ipAddress,
    if (width != null) "width": width,
  });
  return version;
}