DgisSearchWidget constructor
const
DgisSearchWidget({
- required SearchManager searchManager,
- void onObjectSelected()?,
- SearchResultBuilder? resultBuilder,
- SearchWidgetColorScheme colorScheme = defaultSearchWidgetColorScheme,
- Key? key,
Implementation
const DgisSearchWidget({
required sdk.SearchManager searchManager,
void Function(sdk.DirectoryObject)? onObjectSelected,
this.resultBuilder,
this.colorScheme = defaultSearchWidgetColorScheme,
super.key,
}) : _onObjectSelected = onObjectSelected,
_searchManager = searchManager,
assert(
onObjectSelected == null || resultBuilder == null,
'You can only provide either onObjectSelected or resultBuilder, not both.',
);