DartTutorial icon indicating copy to clipboard operation
DartTutorial copied to clipboard

Return Type issue

Open AndragApps opened this issue 4 years ago • 0 comments

I found my interest in this repo so I just download it and open it into VSCode and found some error like e.i. in 17_default_parameters has a function
int findVolume(int length, {int breadth = 2, int height = 20}) { print("Lenght is $length"); print("Breadth is $breadth"); print("Height is $height");

print("Volume is ${length * breadth * height}"); } this function doesn't return an integer value although the type is int. Correct me If I did any mistake from my side.

Thank You

AndragApps avatar Aug 21 '21 01:08 AndragApps