Created
March 24, 2019 17:26
-
-
Save felangel/b3767735144ae3dd9c45b69b607c85c9 to your computer and use it in GitHub Desktop.
Chat Bloc Fixed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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