CyberListView constructor
const
CyberListView({
- Key? key,
- CyberDataTable? dataSource,
- FutureDataCallback? onLoadData,
- required ItemBuilder itemBuilder,
- bool isClickToScreen = false,
- ItemTapCallback? onItemTap,
- ItemLongPressCallback? onItemLongPress,
- bool isMenuClickToScreen = false,
- MenuItemTapCallback? onMenuItemTap,
- CyberDataTable? dtSwipeActions,
- bool isSwipeActionClickToScreen = false,
- SwipeActionCallback? onSwipeActionTap,
- CyberDataTable? dtToolbarActions,
- bool isToolbarActionClickToScreen = false,
- ToolbarActionCallback? onToolbarActionTap,
- int pageSize = 20,
- bool showSearchBox = false,
- Widget? emptyWidget,
- Widget? loadingWidget,
- Widget? separator,
- EdgeInsets? padding,
- ScrollController? scrollController,
- int searchDebounceTime = 500,
- int columnCount = 1,
- double crossAxisSpacing = 8.0,
- double mainAxisSpacing = 8.0,
- double childAspectRatio = 1.0,
- bool horizontal = false,
- bool autoItemHeight = false,
- dynamic height,
- List<
String> ? columnsFilter,
Implementation
const CyberListView({
super.key,
this.dataSource,
this.onLoadData,
required this.itemBuilder,
this.isClickToScreen = false,
this.onItemTap,
this.onItemLongPress,
this.menuDataTable,
this.isMenuClickToScreen = false,
this.onMenuItemTap,
this.dtSwipeActions,
this.isSwipeActionClickToScreen = false,
this.onSwipeActionTap,
this.dtToolbarActions,
this.isToolbarActionClickToScreen = false,
this.onToolbarActionTap,
this.pageSize = 20,
this.showSearchBox = false,
this.emptyWidget,
this.loadingWidget,
this.separator,
this.padding,
this.scrollController,
this.searchDebounceTime = 500,
this.columnCount = 1,
this.crossAxisSpacing = 8.0,
this.mainAxisSpacing = 8.0,
this.childAspectRatio = 1.0,
this.horizontal = false,
this.autoItemHeight = false,
this.height,
this.columnsFilter,
}) : assert(columnCount >= 1, 'columnCount phải >= 1');