Skip to main content

postsDemoData top-level constant

List<Map<String, Object>> const postsDemoData

This file contains demo data for posts. It contains a list of type Map<String, Object> and sample data of posts.

Implementation

const postsDemoData = [
{
"_id": "asdasdasd",
"text":
"Flutter is Google’s mobile UI framework for crafting high-quality native interfaces on iOS and Android in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.",
"createdAt": "created at string",
"imageUrl": "image url string",
"creator": {
"firstName": "Rutvik",
"lastName": "Chandla",
"_id": "asdasdasd"
},
"likedBy": [
{"firstName": "User", "lastName": "1", "_id": "asdasdasdas"},
{"firstName": "User", "lastName": "2", "_id": "asdasdasdas"},
{"firstName": "User", "lastName": "3", "_id": "asdasdasdas"}
],
"comments": [
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "1", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "2", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "3", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "5", "_id": "asdasdasdas"}
},
]
},
{
"_id": "asdasdasd",
"text":
"Flutter is Google’s mobile UI framework for crafting high-quality native interfaces on iOS and Andro_id in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.",
"createdAt": "created at string",
"imageUrl": "image url string",
"creator": {
"firstName": "Ranchhod Das Chhanchad",
"lastName": "Chandla",
"_id": "asdasdasd"
},
"likedBy": [
{"firstName": "User", "lastName": "1", "_id": "asdasdasdas"},
{"firstName": "User", "lastName": "2", "_id": "asdasdasdas"},
{"firstName": "User", "lastName": "3", "_id": "asdasdasdas"}
],
"comments": [
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
]
},
{
"_id": "asdasdasd",
"text":
"Flutter is Google’s mobile UI framework for crafting high-quality native interfaces on iOS and Andro_id in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.",
"createdAt": "created at string",
"imageUrl": "image url string",
"creator": {
"firstName": "Ritik",
"lastName": "Srivastav",
"_id": "asdasdasd"
},
"likedBy": [
{"firstName": "User", "lastName": "1", "_id": "asdasdasdas"},
{"firstName": "User", "lastName": "2", "_id": "asdasdasdas"},
{"firstName": "User", "lastName": "3", "_id": "asdasdasdas"}
],
"comments": [
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
]
},
{
"_id": "asdasdasd",
"text":
"Flutter is Google’s mobile UI framework for crafting high-quality native interfaces on iOS and Andro_id in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.",
"createdAt": "created at string",
"imageUrl": "image url string",
"creator": {
"firstName": "Utkarsh",
"lastName": "Shengde",
"_id": "asdasdasd"
},
"likedBy": [
{"firstName": "User", "lastName": "1", "_id": "asdasdasdas"},
{"firstName": "User", "lastName": "2", "_id": "asdasdasdas"},
{"firstName": "User", "lastName": "3", "_id": "asdasdasdas"}
],
"comments": [
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
{
"_id": "commentID",
"text": "This is the posted comment",
"creator": {"firstName": "User", "lastName": "4", "_id": "asdasdasdas"}
},
]
},
];