Function to select a value
@override void select(T val, {bool selected = true}) { onChanged?.call(val); }