pinRow method

Future<void> pinRow(
  1. int row,
  2. PinPosition pin
)

Pin a row to top or bottom, or unpin it.

Implementation

Future<void> pinRow(int row, PinPosition pin) async {
  await VolvoxGridService.DefineRows(DefineRowsRequest()
    ..gridId = _gridId
    ..rows.add(RowDef()
      ..index = row
      ..pin = pin));
  notifyListeners();
}