Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Chat Bloc Fixed
import 'package:equatable/equatable.dart';
import 'package:flutter_app/network/response/message_response.dart';
abstract class ChatEvent extends Equatable {
ChatEvent([List props = const []]) : super(props);
}
class SendMessageEvent extends ChatEvent {
final MessagesResponse newMessage;
SendMessageEvent({this.newMessage}) : super([newMessage]);
@override
String toString() {
return 'SendMessageEvent';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.