-
Notifications
You must be signed in to change notification settings - Fork 344
bring the packages's lints in-line with the Flutter standard #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/performance/performance.dart
Outdated
@@ -397,7 +407,11 @@ tries['inclusiveFunctionTrie'] = | |||
*/ | |||
|
|||
int clamp(int value, int min, int max) { | |||
if (value < min) return min; | |||
if (value > max) return max; | |||
if (value < min) { |
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: int now has a clamp method. in a separate CL perhaps switch to it instead.
https://api.dartlang.org/stable/2.0.0/dart-core/num/clamp.html
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.
ah, I was not aware; switched over to using this
@jacob314