@@ -40,7 +40,8 @@ Future<void> main() async {
40
40
final user1 = clientWithSecret.flatFeed ('user' , '1' );
41
41
42
42
// Create an activity object
43
- var activity = Activity (actor: 'User:1' , verb: 'pin' , object: 'Place:42' );
43
+ var activity =
44
+ const Activity (actor: 'User:1' , verb: 'pin' , object: 'Place:42' );
44
45
45
46
// Add an activity to the feed
46
47
final pinActivity = await user1.addActivity (activity);
@@ -77,7 +78,7 @@ Future<void> main() async {
77
78
secret: secret,
78
79
appId: appId,
79
80
runner: Runner .server,
80
- options: StreamHttpClientOptions (location: Location .usEast),
81
+ options: const StreamHttpClientOptions (location: Location .usEast),
81
82
);
82
83
83
84
final userToken = client.frontendToken ('user.id' );
@@ -103,7 +104,7 @@ Future<void> main() async {
103
104
object: "3" ,
104
105
time: now,
105
106
foreignId: "like:3" ,
106
- extraData: {
107
+ extraData: const {
107
108
'popularity' : 100 ,
108
109
});
109
110
@@ -207,7 +208,7 @@ Future<void> main() async {
207
208
// Add the activity to Eric's feed and to Jessica's notification feed
208
209
activity = Activity (
209
210
actor: 'user:Eric' ,
210
- extraData: {
211
+ extraData: const {
211
212
'message' : "@Jessica check out getstream.io it's awesome!" ,
212
213
},
213
214
verb: 'tweet' ,
@@ -316,7 +317,7 @@ Future<void> main() async {
316
317
317
318
// First create a collection entry with upsert api
318
319
await clientWithSecret.collections.upsert ('food' , [
319
- CollectionEntry (id: 'cheese-burger' , data: {'name' : 'Cheese Burger' }),
320
+ const CollectionEntry (id: 'cheese-burger' , data: {'name' : 'Cheese Burger' }),
320
321
]);
321
322
322
323
// Then create a user
0 commit comments