25 lines
591 B
Dart
25 lines
591 B
Dart
import 'package:flutter_card_swiper/flutter_card_swiper.dart';
|
|
|
|
sealed class ControllerEvent {
|
|
const ControllerEvent();
|
|
}
|
|
|
|
class ControllerSwipeEvent extends ControllerEvent {
|
|
final CardSwiperDirection direction;
|
|
const ControllerSwipeEvent(this.direction);
|
|
}
|
|
|
|
class ControllerUndoEvent extends ControllerEvent {
|
|
const ControllerUndoEvent();
|
|
}
|
|
|
|
class ControllerMoveEvent extends ControllerEvent {
|
|
final int index;
|
|
const ControllerMoveEvent(this.index);
|
|
}
|
|
|
|
class ControllerNewStackEvent extends ControllerEvent {
|
|
final int length;
|
|
const ControllerNewStackEvent(this.length);
|
|
}
|