from<T> static method

XFilterEl from<T>(
  1. XProp xPropOfItemToFilter,
  2. List<T> items, {
  3. T? All,
  4. dynamic initialValue,
  5. Color? backgroundMenuColor,
  6. double? width,
  7. double? menu_height,
  8. TextStyle? textStyle(
    1. 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;
}