Selector<T> constructor
const
Selector<T>({ - Key? key,
- required List<T> items,
- required Widget itemBuilder(
- T data
),
- Widget buttonBuilder(
- int i,
- T data
)?,
- T? initial,
- void onSelected(
- T
)?,
- GlobalKey<State<StatefulWidget>>? buttonKey,
- Alignment alignment = Alignment.topCenter,
- Duration? debounce,
- double width = 260,
- EdgeInsets margin = EdgeInsets.zero,
- required bool isMobile,
- void onPointerUp(
- BuildContext
)? = _popNavigator,
})
Implementation
const Selector({
super.key,
required this.items,
required this.itemBuilder,
this.buttonBuilder,
this.initial,
this.onSelected,
this.buttonKey,
this.alignment = Alignment.topCenter,
this.debounce,
this.width = 260,
this.margin = EdgeInsets.zero,
required this.isMobile,
this.onPointerUp = _popNavigator,
});