FieldSuggestion<T>.network constructor
const
FieldSuggestion<T>.network ({
- Key? key,
- required TextEditingController textController,
- required Future<
List< future(T> >- String input
- required Widget builder()?,
- List<
T> ? initialData, - Duration? futureRebuildDuration,
- void onData(
- AsyncSnapshot<
List< T> >
- AsyncSnapshot<
- void onError(
- AsyncSnapshot<
List< T> >
- AsyncSnapshot<
- void onLoad(
- AsyncSnapshot<
List< T> >
- AsyncSnapshot<
- void onEmptyData(
- AsyncSnapshot<
List< T> >
- AsyncSnapshot<
- BoxController? boxController,
- BoxStyle? boxStyle,
- double? maxBoxHeight,
- InputDecoration? inputDecoration,
- TextInputType? inputType,
- FocusNode? focusNode,
- int? maxLines,
- TextStyle? inputStyle,
- FormFieldValidator<
String> ? validator, - double cursorWidth = 2,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- ScrollController? scrollController,
- double spacer = 5.0,
- int? sizeByItem,
- EdgeInsets padding = const EdgeInsets.all(12),
- bool wOpacityAnimation = false,
- bool wSlideAnimation = false,
- Duration animationDuration = const Duration(milliseconds: 400),
- SlideStyle slideStyle = SlideStyle.RTL,
- Tween<
Offset> ? slideOffset, - 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);