Last active
January 7, 2019 00:46
-
-
Save felangel/cde347bc112391a907944ee15d085529 to your computer and use it in GitHub Desktop.
[flutter_infinite_list] Post Model
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'; | |
class Post extends Equatable { | |
final int id; | |
final String title; | |
final String body; | |
Post({this.id, this.title, this.body}) : super([id, title, body]); | |
@override | |
String toString() => 'Post { id: $id }'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment