findRowByRegex method

Future<int> findRowByRegex(
  1. String pattern, {
  2. required int col,
  3. int startRow = 0,
})

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

Implementation

Future<int> findRowByRegex(
  String pattern, {
  required int col,
  int startRow = 0,
}) async {
  final resp = await VolvoxGridService.Find(FindRequest()
    ..gridId = _gridId
    ..col = col
    ..startRow = startRow
    ..regexQuery = (RegexQuery()..pattern = pattern));
  return resp.row;
}