NsgListPage constructor

const NsgListPage({
  1. Key? key,
  2. EdgeInsets contentPadding = EdgeInsets.zero,
  3. NsgUserSettingsController<NsgDataItem>? userSettingsController,
  4. String userSettingsId = '',
  5. Widget? widgetBottom,
  6. bool showLastAndFavourites = false,
  7. required NsgDataUI<NsgDataItem> controller,
  8. required String title,
  9. String? subtitle,
  10. String? showCount,
  11. required String textNoItems,
  12. Widget elementWidget(
    1. NsgDataItem
    )?,
  13. required String elementEditPage,
  14. List<NsgTableColumn>? columns,
  15. NsgListPageMode? type = NsgListPageMode.list,
  16. double gridCellMinWidth = 160,
  17. double gridXSpacing = 10.0,
  18. double gridYSpacing = 10.0,
  19. Widget? appBar,
  20. Color? appBarColor,
  21. Color? appBarBackColor,
  22. IconData? appBarIcon = Icons.arrow_back_ios_new,
  23. IconData? appBarIcon2 = Icons.add,
  24. IconData? appBarIcon3,
  25. int getNotificationCount()?,
  26. VoidCallback? appBarOnPressed,
  27. VoidCallback? appBarOnPressed2,
  28. VoidCallback? appBarOnPressed3,
  29. void onElementTap(
    1. NsgDataItem
    )?,
  30. NsgDataController<NsgDataItem>? notificationController,
  31. NsgAppBarNotificationPosition notificationPosition = NsgAppBarNotificationPosition.leftIcon,
  32. List<NsgTableMenuButtonType>? availableButtons,
})

Implementation

const NsgListPage({
  Key? key,
  this.contentPadding = EdgeInsets.zero,
  this.userSettingsController,
  this.userSettingsId = '',
  this.widgetBottom,
  this.showLastAndFavourites = false,
  required this.controller,
  required this.title,
  this.subtitle,
  this.showCount,
  required this.textNoItems,
  this.elementWidget,
  required this.elementEditPage,
  this.columns,
  this.type = NsgListPageMode.list,
  this.gridCellMinWidth = 160,
  this.gridXSpacing = 10.0,
  this.gridYSpacing = 10.0,
  this.appBar,
  this.appBarColor,
  this.appBarBackColor,
  this.appBarIcon = Icons.arrow_back_ios_new,
  this.appBarIcon2 = Icons.add,
  this.appBarIcon3,
  this.getNotificationCount,
  this.appBarOnPressed,
  this.appBarOnPressed2,
  this.appBarOnPressed3,
  this.onElementTap,
  this.notificationController,
  this.notificationPosition = NsgAppBarNotificationPosition.leftIcon,
  this.availableButtons,
}) : super(key: key);