printTable static method
Print texts as a table.
texts
can be sent as a array.
Column width ratio can be set as widths
array. The default is 1,1
Text alignment can be set as alignment
array.
Implementation
static Future<void> printTable({
List<String>? texts,
List<int> widths = const [1, 1],
List<int> alignments = const [0, 2],
}) async {
await _channel.invokeMethod('printTable', <String, dynamic>{
'texts': texts,
"widths": Int32List.fromList(widths),
"alignments": Int32List.fromList(alignments),
});
}