By definition, an Optional Parameter is a handy feature that enables programmers to pass less number of parameters to a function and assign a default value .
Read moreHow do you pass optional parameters in flutter?
To specify the optional argument with default values, we use {} curly braces . In optional positional argument and optional named argument, if we don’t specify the value in an argument then it is set to NULL.
Read more