options abstract method

Future<OptionsPage> options(
  1. String resourceKey, {
  2. required String field,
  3. Object? recordId,
  4. required Map<String, dynamic> values,
  5. required String query,
})

POST /{resource}/options — the options for a select whose list /schema refused to inline.

values carries the form's current state because options depend on siblings: a pilot measured a dependent picker narrowing 6 -> 2 -> 1 as its parent changed. Sending an empty map makes every dependent select wrong.

Implementation

Future<OptionsPage> options(
  String resourceKey, {
  required String field,
  Object? recordId,
  required Map<String, dynamic> values,
  required String query,
});