@@ -40,7 +40,8 @@ Future<void> main() async {
4040 final user1 = clientWithSecret.flatFeed ('user' , '1' );
4141
4242// 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' );
4445
4546// Add an activity to the feed
4647 final pinActivity = await user1.addActivity (activity);
@@ -77,7 +78,7 @@ Future<void> main() async {
7778 secret: secret,
7879 appId: appId,
7980 runner: Runner .server,
80- options: StreamHttpClientOptions (location: Location .usEast),
81+ options: const StreamHttpClientOptions (location: Location .usEast),
8182 );
8283
8384 final userToken = client.frontendToken ('user.id' );
@@ -103,7 +104,7 @@ Future<void> main() async {
103104 object: "3" ,
104105 time: now,
105106 foreignId: "like:3" ,
106- extraData: {
107+ extraData: const {
107108 'popularity' : 100 ,
108109 });
109110
@@ -207,7 +208,7 @@ Future<void> main() async {
207208 // Add the activity to Eric's feed and to Jessica's notification feed
208209 activity = Activity (
209210 actor: 'user:Eric' ,
210- extraData: {
211+ extraData: const {
211212 'message' : "@Jessica check out getstream.io it's awesome!" ,
212213 },
213214 verb: 'tweet' ,
@@ -316,7 +317,7 @@ Future<void> main() async {
316317
317318 // First create a collection entry with upsert api
318319 await clientWithSecret.collections.upsert ('food' , [
319- CollectionEntry (id: 'cheese-burger' , data: {'name' : 'Cheese Burger' }),
320+ const CollectionEntry (id: 'cheese-burger' , data: {'name' : 'Cheese Burger' }),
320321 ]);
321322
322323// Then create a user
0 commit comments