FIPIconController.multiple constructor

FIPIconController.multiple({
  1. required bool shouldScrollToSelectedIcon,
  2. List<IconPickerIcon> selectedIcons = const [],
  3. IconWidgetBuilder? iconBuilder,
})

Implementation

FIPIconController.multiple({
  required bool shouldScrollToSelectedIcon,
  List<IconPickerIcon> selectedIcons = const [],
  IconWidgetBuilder? iconBuilder,
})  : _selectedIcon =
          selectedIcons.isNotNullOrEmpty ? selectedIcons.first : null,
      _selectedIcons = selectedIcons,
      _shouldScrollToSelectedIcon = shouldScrollToSelectedIcon,
      _isMultiple = true,
      _iconBuilder = iconBuilder;