event.dart
480 Bytes
import 'package:wow_english/models/product_entity.dart';
import 'bloc.dart';
abstract class ShoppingEvent {}
class InitEvent extends ShoppingEvent {}
class ChangePaymentChannelEvent extends ShoppingEvent {
final PaymentChannel paymentChannel;
ChangePaymentChannelEvent(this.paymentChannel);
}
class DoPayEvent extends ShoppingEvent {
final ProductEntity? productEntity;
final PaymentChannel paymentChannel;
DoPayEvent(this.productEntity, this.paymentChannel);
}