getApiSelectValue<T> method

dynamic getApiSelectValue<T>(
  1. T func(
    1. T item
    )
)

Implementation

dynamic getApiSelectValue<T>(T Function(T item) func) {
  var model = this as MahasInputSelectModel<T>;
  var val = func(model.selected.value);
  return val == 0 ? null : val;
}