posts method
PostsWidgetBundle
posts({
- Key? key,
- required BuildContext context,
- required dynamic profileFunction({}),
- ScrollController? scrollController,
- List<
Post> ? cachedpostsList, - dynamic onPostsUpdated()?,
- Function? refreshPosts,
- bool isPostdetail = false,
- String? category,
- int? userID,
- String? username,
- bool shrinkWrap = false,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- ScrollPhysics physics = const ClampingScrollPhysics(),
- bool sliverWidget = false,
- bool autofetchposts = true,
Implementation
PostsWidgetBundle posts({
Key? key,
required BuildContext context,
required Function({
required int userID,
required String username,
required String? displayname,
required Media? avatar,
required Media? banner,
}) profileFunction,
ScrollController? scrollController,
List<Post>? cachedpostsList,
Function(List<Post> updatedPosts)? onPostsUpdated,
Function? refreshPosts,
bool isPostdetail = false,
String? category,
int? userID,
String? username,
bool shrinkWrap = false,
EdgeInsetsGeometry padding = EdgeInsets.zero,
ScrollPhysics physics = const ClampingScrollPhysics(),
bool sliverWidget = false,
bool autofetchposts = true,
}) {
return widgetSocialPosts(
service,
context: context,
key: key,
profileFunction: profileFunction,
autofetchposts: autofetchposts,
cachedpostsList: cachedpostsList,
category: category,
isPostdetail: isPostdetail,
onPostsUpdated: onPostsUpdated,
padding: padding,
physics: physics,
refreshPosts: refreshPosts,
scrollController: scrollController,
shrinkWrap: shrinkWrap,
sliverWidget: sliverWidget,
userID: userID,
username: username,
);
}