Skip to content

Instantly share code, notes, and snippets.

@felangel
Last active January 7, 2019 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felangel/cde347bc112391a907944ee15d085529 to your computer and use it in GitHub Desktop.
Save felangel/cde347bc112391a907944ee15d085529 to your computer and use it in GitHub Desktop.
[flutter_infinite_list] Post Model
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