File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
lib/webstore/catalogue/product/autocomplete/types Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,29 @@ import 'package:flutter/material.dart'
3
3
import 'package:testable_web_app/webstore/catalogue/product/models/product_model.dart'
4
4
show ProductModel;
5
5
6
+ /// Circumspect typedef.
7
+ /// Dart does not support simple type aliases typedef on typedef
8
+ /// https://github.com/dart-lang/language/issues/65
9
+ ///
10
+ /// final AutocompleteOptionsBuilder<ProductModel> optionsBuilder;
11
+ ///
6
12
typedef ProductAutocompleteOptionsBuilder = Iterable <ProductModel > Function (
7
13
TextEditingValue textEditingValue,
8
14
);
15
+
16
+ /// final AutocompleteOptionsViewBuilder<ProductModel> optionsViewBuilder;
9
17
typedef ProductAutocompleteOptionsViewBuilder = Widget Function (
10
18
BuildContext context,
11
19
AutocompleteOnSelected <ProductModel > onSelected,
12
20
Iterable <ProductModel > options,
13
21
);
22
+
23
+ /// final AutocompleteOnSelected<ProductModel>? onSelected;
14
24
typedef ProductAutocompleteOnSelected = void Function (
15
25
ProductModel option,
16
26
);
27
+
28
+ /// final AutocompleteOptionToString<ProductModel>? displayStringForOption;
17
29
typedef ProductAutocompleteOptionToString = String Function (
18
30
ProductModel option,
19
31
);
You can’t perform that action at this time.
0 commit comments