You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
641 B
30 lines
641 B
import 'package:equatable/equatable.dart';
|
|
import 'package:meta/meta.dart';
|
|
|
|
@immutable
|
|
abstract class ContactEvent extends Equatable {
|
|
// ContactEvent([List props = const []]) : super(props);
|
|
const ContactEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class RefreshContactEvent extends ContactEvent {}
|
|
|
|
class UpdateContactEvent extends ContactEvent {
|
|
final String? tid;
|
|
|
|
UpdateContactEvent({@required this.tid})
|
|
: assert(tid != null),
|
|
super();
|
|
}
|
|
|
|
class DeleteContactEvent extends ContactEvent {
|
|
final String? tid;
|
|
|
|
DeleteContactEvent({@required this.tid})
|
|
: assert(tid != null),
|
|
super();
|
|
}
|