Dart Operators: Other

Dart Operators: Other

  1. Function Invocation Operator:

    ( ): Invokes a function or a method

  2. Indexing Operator:

    [ ] : Accesses an element a a specific index in a list or a character at a specific index in a string.

  3. Spread Operator:

    . . . : Allows invoking extension methods conditionally, guarding against null values.

  4. Bang Operator:

    ! : Used in null safety to assert that an expression isn't null, or to negate a Boolean expression.

  5. 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.

    *