GetOptionGroupsResponse constructor

GetOptionGroupsResponse({
  1. required String scannerHandle,
  2. required OperationResult result,
  3. List<OptionGroup>? groups,
})

Implementation

GetOptionGroupsResponse({
  /// Same scanner handle passed to `getOptionGroups()`.
  required String scannerHandle,

  /// The backend's result of getting the option groups.
  required OperationResult result,

  /// If `result` is `OperationResult.SUCCESS`, a list of
  /// option groups in the order supplied by the backend.
  List<OptionGroup>? groups,
}) : _wrapped = $js.GetOptionGroupsResponse(
        scannerHandle: scannerHandle,
        result: result.toJS,
        groups: groups?.toJSArray((e) => e.toJS),
      );