to method

List<Move> to(
  1. int square
)

All moves to square.

Implementation

List<Move> to(int square) => where((e) => e.to == square).toList();