Every function in dart is an object.

Functions that we use very often without a name are also called lambda functions.

You can see usage example and output below.

Lambda Function Example Code