DgisSearchWidget constructor

const DgisSearchWidget({
  1. required SearchManager searchManager,
  2. void onObjectSelected(
    1. DirectoryObject
    )?,
  3. SearchResultBuilder? resultBuilder,
  4. SearchWidgetColorScheme colorScheme = defaultSearchWidgetColorScheme,
  5. 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.',
      );