FlutterTagging<T extends Taggable> constructor

FlutterTagging<T extends Taggable>(
  1. {required List<T> initialItems,
  2. required FutureOr<List<T>> findSuggestions(
    1. String
    ),
  3. required ChipConfiguration configureChip(
    1. T
    ),
  4. required SuggestionConfiguration configureSuggestion(
    1. T
    ),
  5. VoidCallback? onChanged,
  6. T additionCallback(
    1. String
    )?,
  7. bool enableImmediateSuggestion = false,
  8. Widget errorBuilder(
    1. BuildContext,
    2. Object?
    )?,
  9. Widget loadingBuilder(
    1. BuildContext
    )?,
  10. Widget emptyBuilder(
    1. BuildContext
    )?,
  11. WrapConfiguration wrapConfiguration = const WrapConfiguration(),
  12. TextFieldConfiguration textFieldConfiguration = const TextFieldConfiguration(),
  13. SuggestionsBoxConfiguration suggestionsBoxConfiguration = const SuggestionsBoxConfiguration(),
  14. dynamic transitionBuilder(
    1. BuildContext,
    2. Widget,
    3. AnimationController?
    )?,
  15. Duration debounceDuration = const Duration(milliseconds: 300),
  16. bool hideOnEmpty = false,
  17. bool hideOnError = false,
  18. bool hideOnLoading = false,
  19. Duration animationDuration = const Duration(milliseconds: 500),
  20. double animationStart = 0.25,
  21. FutureOr<T> onAdded(
    1. T
    )?}
)

Creates a FlutterTagging widget.

Implementation

FlutterTagging({
  required this.initialItems,
  required this.findSuggestions,
  required this.configureChip,
  required this.configureSuggestion,
  this.onChanged,
  this.additionCallback,
  this.enableImmediateSuggestion = false,
  this.errorBuilder,
  this.loadingBuilder,
  this.emptyBuilder,
  this.wrapConfiguration = const WrapConfiguration(),
  this.textFieldConfiguration = const TextFieldConfiguration(),
  this.suggestionsBoxConfiguration = const SuggestionsBoxConfiguration(),
  this.transitionBuilder,
  this.debounceDuration = const Duration(milliseconds: 300),
  this.hideOnEmpty = false,
  this.hideOnError = false,
  this.hideOnLoading = false,
  this.animationDuration = const Duration(milliseconds: 500),
  this.animationStart = 0.25,
  this.onAdded,
});