Last active
August 3, 2022 12:33
-
-
Save adegbengaagoro/aceb145614f830bce18d879e681e57ab to your computer and use it in GitHub Desktop.
Convert makeMangoShake method to a fat arrow function
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
class Recipe { | |
int mango; | |
int milk; | |
int sugar; | |
Recipe(this.mango, this.milk, this.sugar); | |
int makeMangoShake() { | |
return mango+milk+sugar; | |
} | |
} |
TamynatorSama
commented
Aug 3, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment