Search⌘ K
AI Features

Calling a Function

Explore how to call functions in Dart, including user-defined and built-in functions. Learn to store return values and reuse existing functions within new ones to write efficient code with practical examples.

A simple function call

When you want to use a function, it needs to be invoked by being called upon. You call a user-defined function the same way you call a built-in function; by calling its name followed by the input in (). Let’s call the newPrint function and sum function we ...