Dart Operators: Other


Function Invocation Operator:
( )
: Invokes a function or a methodIndexing Operator:
[ ]
: Accesses an element a a specific index in a list or a character at a specific index in a string.Spread Operator:
. . .
: Allows invoking extension methods conditionally, guarding against null values.Bang Operator:
!
: Used in null safety to assert that an expression isn't null, or to negate a Boolean expression.Conditional Member Access Operator:
?.
: Similar to the dot operator (.
), but it guards against null values. It allows accessing properties or calling methods on an object if the object is not null; otherwise, it returns null.*
Subscribe to my newsletter
Read articles from Jinali Ghoghari directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
