Last active
October 6, 2019 19:51
-
-
Save Aetet/0fe6876ce5d6d8cfd60acad43a1b5e76 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final a = 10; | |
final inside = a.clamp(1, 11); | |
final outsideMax = a.clamp(1, 9); | |
final outsideMin = a.clamp(11, 20); | |
print('inside: $inside, min: $outsideMin, max: $outsideMax'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment