searchOptionsFor property

Future<OptionsPage> Function(String field, String query)? searchOptionsFor
final

The per-field variant of searchOptions, for the one caller that cannot use it: a container field whose children each need a lookup bound to the CHILD's own name. searchOptions is a closure already bound to the field it was built for, and a closure cannot be rebound — handing a repeater's searchOptions to a row's select would query the repeater's own name, which the options endpoint rightly refuses. A container (today only RepeaterFieldWidget) calls this with the child's name instead; leaf fields keep reading searchOptions, and a form that never nests a remote select inside a repeater can ignore this entirely.

Implementation

final Future<OptionsPage> Function(String field, String query)?
searchOptionsFor;