setItems static method
Replace the native list items of the tab at tabIndex.
Use this for async/dynamic data and pagination (append by passing the full new list).
Implementation
static Future<void> setItems({
required int tabIndex,
required List<CNListItem> items,
}) async {
if (!_enabled) return;
await _channel.invokeMethod('setItems', {
'tabIndex': tabIndex,
'items': [for (final i in items) _itemMap(i)],
});
}