activate method

void activate()

Activate an object in the grid.

This method can activate both actions and row entries.

Implementation

void activate() {
  final row = currentRow;
  if (row != null) {
    final hp = horizontalPosition;
    if (hp != null) {
      if (hp >= 0) {
        row.onActivate(hp);
      } else {
        row.actions[(hp * -1) - 1].func();
      }
    }
  }
}