-
Notifications
You must be signed in to change notification settings - Fork 6k
[HR] Documentation cleanup #7370
Conversation
7dc8e5e to
84c349f
Compare
amirh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSLGTM for isolate_name_server (I don't know it at all, just assuming what you wrote is correct 😄 ).
LGTM for the rest.
|
|
||
| /// A handle to an image codec. | ||
| /// | ||
| /// This class is created by the engine, and should not be instantiated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe worth making this a macro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave that for the next person who wants to do some cleanup :-)
bkonyi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with comments.
lib/ui/isolate_name_server.dart
Outdated
| abstract class IsolateNameServer { | ||
| /// Looks up the [SendPort] associated with a given name. Returns null | ||
| /// if the name does not exist. | ||
| /// Static methods to allow for simple sharing of [SendPort]s across [Isolates]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be [Isolate]s for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. good catch. fixed.
| @override | ||
| int get hashCode => _handle; | ||
| bool operator ==(dynamic other) { | ||
| if (runtimeType != other.runtimeType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for this change here? Does this not accomplish the same thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original code used is, which isn't correct in operator == (because it makes different subclasses compare equal).
We have a boilerplate pattern we use for all operator == throughout Flutter.
|
Can you land this? |
|
Updated per comments. This can land on green (feel free to land it for me if you see it's green). |
No description provided.