print method

  1. @override
Future<String?> print(
  1. List<ItemPrintModel> items
)
override

Print

Implementation

@override
Future<String?> print(List<ItemPrintModel> items) async {
  final result = await methodChannel.invokeMethod<String>(
    'print',
    <String, dynamic>{
      'items':
          items.map<Map<String, dynamic>>((item) => item.toMap()).toList(),
    },
  );

  return result;
}