FieldSuggestion<T>.network constructor

const FieldSuggestion<T>.network({
  1. Key? key,
  2. required TextEditingController textController,
  3. required Future<List<T>> future(
    1. String input
    )?,
  4. required Widget builder(
    1. BuildContext,
    2. AsyncSnapshot<List<T>>
    )?,
  5. List<T>? initialData,
  6. Duration? futureRebuildDuration,
  7. void onData(
    1. AsyncSnapshot<List<T>>
    )?,
  8. void onError(
    1. AsyncSnapshot<List<T>>
    )?,
  9. void onLoad(
    1. AsyncSnapshot<List<T>>
    )?,
  10. void onEmptyData(
    1. AsyncSnapshot<List<T>>
    )?,
  11. BoxController? boxController,
  12. BoxStyle? boxStyle,
  13. double? maxBoxHeight,
  14. InputDecoration? inputDecoration,
  15. TextInputType? inputType,
  16. FocusNode? focusNode,
  17. int? maxLines,
  18. TextStyle? inputStyle,
  19. FormFieldValidator<String>? validator,
  20. double cursorWidth = 2,
  21. double? cursorHeight,
  22. Radius? cursorRadius,
  23. Color? cursorColor,
  24. Brightness? keyboardAppearance,
  25. ScrollController? scrollController,
  26. double spacer = 5.0,
  27. int? sizeByItem,
  28. EdgeInsets padding = const EdgeInsets.all(12),
  29. bool wOpacityAnimation = false,
  30. bool wSlideAnimation = false,
  31. Duration animationDuration = const Duration(milliseconds: 400),
  32. SlideStyle slideStyle = SlideStyle.RTL,
  33. Tween<Offset>? slideOffset,
  34. Curve slideCurve = Curves.decelerate,
})

Implementation

const FieldSuggestion.network({
  Key? key,
  required this.textController,
  required this.future,
  required this.builder,
  this.initialData,
  this.futureRebuildDuration,
  this.onData,
  this.onError,
  this.onLoad,
  this.onEmptyData,
  this.boxController,
  this.boxStyle,
  this.maxBoxHeight,
  this.inputDecoration,
  this.inputType,
  this.focusNode,
  this.maxLines,
  this.inputStyle,
  this.validator,
  this.cursorWidth = 2,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollController,
  this.spacer = 5.0,
  this.sizeByItem,
  this.padding = const EdgeInsets.all(12),
  this.wOpacityAnimation = false,
  this.wSlideAnimation = false,
  this.animationDuration = const Duration(milliseconds: 400),
  this.slideStyle = SlideStyle.RTL,
  this.slideOffset,
  this.slideCurve = Curves.decelerate,
})  : itemBuilder = null,
      separatorBuilder = null,
      search = null,
      suggestions = null,
      assert(
        future != null,
        '[future] propery cannot be null, in case of "network" usage',
      ),
      assert(
        builder != null,
        '[builder] propery cannot be null, in case of "network" usage',
      ),
      super(key: key);