Introduction to Functions and Methods

Go through a brief introduction of functions and methods in Dart.

Functions

In computer programming, a function or a method is a block of code that performs a specific task. The block of code is given a name, much like a variable. The function is called using this name whenever that specific task needs to be performed. This removes the need to type the same code over and over again; all you have to do is call the function’s name.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy