함수
void main() {
print("Sum with type : ${sumWithType(2, 3)}");
print("Sum without type : ${sumWithType(2, 3)}");
print("Sum without type : ${sumWithoutType("Hello", "World")}");
}
int sumWithType(int a, int b) {
return a + b;
}
sumWithoutType(a, b) {
return a + b;
}Last updated