findRowByText method

Future<int> findRowByText(
  1. String text, {
  2. required int col,
  3. int startRow = 0,
  4. bool caseSensitive = false,
  5. bool fullMatch = false,
})

Find a row using plain text query. Returns -1 when not found.

Implementation

Future<int> findRowByText(
  String text, {
  required int col,
  int startRow = 0,
  bool caseSensitive = false,
  bool fullMatch = false,
}) async {
  final resp = await VolvoxGridService.Find(FindRequest()
    ..gridId = _gridId
    ..col = col
    ..startRow = startRow
    ..textQuery = (TextQuery()
      ..text = text
      ..caseSensitive = caseSensitive
      ..fullMatch = fullMatch));
  return resp.row;
}