Defining the function in Dart: Dart provides us with the facility of using functions in its program. Syntax: return_type function_name ( parameters ) { // Body of function return value ; } In the above syntax: function_name defines the name of the function.