Skip to content

Commit

Permalink
Clarify types in code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Jun 17, 2024
1 parent 412adfb commit b85f896
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions documentation/docs/messaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ StreamBuilder(
if (rustSignal == null) {
// Return an empty widget.
}
final myDataOutput = rustSignal.message;
MyDataOutput message = rustSignal.message;
// Return a filled widget.
},
)
Expand All @@ -44,7 +44,8 @@ StreamBuilder(
if (rustSignal == null) {
// Return an empty widget.
}
final myDataOutput = rustSignal.message;
MyDataOutput message = rustSignal.message;
Uint8List binary = rustSignal.binary;
// Return a filled widget.
},
)
Expand Down

0 comments on commit b85f896

Please sign in to comment.