UTextFieldAutoCompleteAsync<T> constructor

const UTextFieldAutoCompleteAsync<T>({
  1. required String labelBuilder(
    1. T
    ),
  2. required void onChanged(
    1. T?
    ),
  3. required T? selectedItem,
  4. required Future<List<T>> fetchData(
    1. String query
    ),
  5. Key? key,
  6. String? hintText,
  7. Duration debounceDuration = const Duration(milliseconds: 500),
  8. EdgeInsetsGeometry? margin,
  9. bool visible = true,
  10. double? opacity,
  11. BoxFit? fit,
  12. AlignmentGeometry fitAlignment = Alignment.center,
  13. double? scale,
  14. double? rotate,
  15. Offset? translate,
  16. bool center = false,
  17. bool safeArea = false,
  18. int? expanded,
  19. int? flexible,
  20. bool positioned = false,
  21. double? left,
  22. double? top,
  23. double? right,
  24. double? bottom,
  25. double? positionedWidth,
  26. double? positionedHeight,
})

Implementation

const UTextFieldAutoCompleteAsync({
  required this.labelBuilder,
  required this.onChanged,
  required this.selectedItem,
  required this.fetchData,
  super.key,
  this.hintText,
  this.debounceDuration = const Duration(milliseconds: 500),
  this.margin,
  this.visible = true,
  this.opacity,
  this.fit,
  this.fitAlignment = Alignment.center,
  this.scale,
  this.rotate,
  this.translate,
  this.center = false,
  this.safeArea = false,
  this.expanded,
  this.flexible,
  this.positioned = false,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.positionedWidth,
  this.positionedHeight,
});