printColumnsString method

  1. @override
Future<void> printColumnsString({
  1. required List<ColumnMaker> cols,
})
override

Implementation

@override
Future<void> printColumnsString({required List<ColumnMaker> cols}) async {
  final jsonCols = List<Map<String, String>>.from(
      cols.map<Map<String, String>>((ColumnMaker col) => col.toJson()));
  Map<String, dynamic> arguments = <String, dynamic>{
    "cols": json.encode(jsonCols)
  };
  await methodChannel.invokeMethod<void>('printColumnsString', arguments);
}