from<T> static method
XFilterEl
from<
T>( - XProp xPropOfItemToFilter,
- List<T> items, {
- T? All,
- dynamic initialValue,
- double? width,
- TextStyle? textStyle(
- dynamic
)?,
})
Implementation
static XFilterEl from<T>(XProp xPropOfItemToFilter, List<T> items, {T? All, dynamic initialValue, Color? backgroundMenuColor, double? width, double? menu_height, TextStyle? Function(dynamic)? textStyle}) {
var xf = XFilterEl<T>(
xPropOfItemToFilter,
All: All,
backgroundMenuColor: backgroundMenuColor,
width: width,
menu_height: menu_height,
textStyle: textStyle != null ? (p0) => textStyle(p0) : null,
);
xf.Items = items;
if (initialValue != null) {
xf.Value = initialValue;
}
return xf;
}