mchess-client/lib/chess_bloc/chess_events.dart

19 lines
416 B
Dart

import 'package:mchess/chessapp/chess_utils.dart';
abstract class ChessEvent {}
class PieceMoved extends ChessEvent {
final ChessCoordinate startSquare;
final ChessCoordinate endSquare;
PieceMoved({required this.startSquare, required this.endSquare});
}
class PreCheckMove extends ChessEvent {
final ChessMove move;
PreCheckMove({required this.move});
}
class BoardFlippedEvent extends ChessEvent {}