maxInitialOptionsShown method

int? maxInitialOptionsShown(
  1. OptionGroup group,
  2. int index
)

How many items to show initially under a given option group.

Returns null when there's no limit, otherwise show the returned number of items initially and hides the rest behind a "View more" link.

Implementation

int? maxInitialOptionsShown(OptionGroup group, int index) {
  if (renderingOptions == null) return null;

  return renderingOptions?.maxInitialOptionsShown(group, index);
}