buildDropdownPreview function

Widget buildDropdownPreview(
  1. DropdownState state,
  2. AnimationController? borderAnimationController
)

Dropdown Preview Builder

Implementation

Widget buildDropdownPreview(
  DropdownState state,
  AnimationController? borderAnimationController,
) {
  return StateVariantsWrapper(
    componentName: 'Dropdown',
    buildRestState: () => _buildInteractiveDropdown(state),
    buildHoverState: () => _buildForcedState(state, forceHovered: true),
    buildPressedState: () => _buildForcedState(state, forcePressed: true),
    buildDisabledState: () => _buildDisabledDropdown(state),
    buildCyclingState: (stateIndex) => _buildCyclingDropdown(state, stateIndex),
    cycleDuration: const Duration(milliseconds: 1500),
  );
}