posts method

PostsWidgetBundle posts({
  1. Key? key,
  2. required BuildContext context,
  3. required dynamic profileFunction({
    1. required Media? avatar,
    2. required Media? banner,
    3. required String? displayname,
    4. required int userID,
    5. required String username,
    }),
  4. ScrollController? scrollController,
  5. List<Post>? cachedpostsList,
  6. dynamic onPostsUpdated(
    1. List<Post> updatedPosts
    )?,
  7. Function? refreshPosts,
  8. bool isPostdetail = false,
  9. String? category,
  10. int? userID,
  11. String? username,
  12. bool shrinkWrap = false,
  13. EdgeInsetsGeometry padding = EdgeInsets.zero,
  14. ScrollPhysics physics = const ClampingScrollPhysics(),
  15. bool sliverWidget = false,
  16. 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,
  );
}