UserListView constructor
UserListView({
- Key? key,
- Filter filter = const Filter.empty(),
- List<
SortOption> ? sort, - bool? presence,
- @Deprecated("'pagination' is deprecated and shouldn't be used. " "This property is no longer used, Please use 'limit' instead") PaginationParams? pagination,
- int? limit,
- UserTapCallback? onUserTap,
- dynamic onUserLongPress()?,
- Widget? userWidget,
- UserItemBuilder? userItemBuilder,
- dynamic separatorBuilder()?,
- dynamic onImageTap()?,
- Set<
User> ? selectedUsers, - bool pullToRefresh = true,
- bool groupAlphabetically = false,
- int crossAxisCount = 1,
- ErrorBuilder? errorBuilder,
- WidgetBuilder? emptyBuilder,
- WidgetBuilder? loadingBuilder,
- Widget listBuilder(
- BuildContext context,
- List<
ListItem> users
- UserListController? userListController,
Instantiate a new UserListView
Implementation
UserListView({
Key? key,
this.filter = const Filter.empty(),
this.sort,
this.presence,
@Deprecated(
"'pagination' is deprecated and shouldn't be used. "
"This property is no longer used, Please use 'limit' instead",
)
this.pagination,
int? limit,
this.onUserTap,
this.onUserLongPress,
this.userWidget,
this.userItemBuilder,
this.separatorBuilder,
this.onImageTap,
this.selectedUsers,
this.pullToRefresh = true,
this.groupAlphabetically = false,
this.crossAxisCount = 1,
this.errorBuilder,
this.emptyBuilder,
this.loadingBuilder,
this.listBuilder,
this.userListController,
}) : assert(
crossAxisCount == 1 || !groupAlphabetically,
'Cannot group alphabetically when crossAxisCount > 1',
),
limit = limit ?? pagination?.limit ?? 30,
super(key: key);