putInExpandedIfNotShrunk method

Widget putInExpandedIfNotShrunk(
  1. BuildContext context,
  2. BlocxInfiniteListState state,
  3. Widget child
)

Implementation

Widget putInExpandedIfNotShrunk(
    BuildContext context, BlocxInfiniteListState state, Widget child) {
  if (options.shrinkWrap) return child;
  return Expanded(child: child);
}