Page 3 - Dart Language
P. 3

Creating a new Set                                                                                13

            Creating a new Map                                                                                13

            Map each element in the collection.                                                               14

            Filter a list                                                                                     14

        Chapter 5: Comments                                                                                  16

          Syntax                                                                                              16

          Remarks                                                                                             16

          Examples                                                                                            16

            End of Line Comment                                                                               16

            Multi-Line Comment                                                                                16

            Documentation using Dartdoc                                                                       16

        Chapter 6: Control Flow                                                                              18

          Examples                                                                                            18

            If Else                                                                                           18

            While Loop                                                                                        18

            For Loop                                                                                          19

            Switch Case                                                                                       19

        Chapter 7: Converting Data                                                                           21

          Examples                                                                                            21

            JSON                                                                                              21

        Chapter 8: Dart-JavaScript interoperability                                                          22

          Introduction                                                                                        22

          Examples                                                                                            22

            Calling a global function                                                                         22

            Wrapping JavaScript classes/namespaces                                                            22

            Passing object literals                                                                           23

        Chapter 9: Date and time                                                                             24

          Examples                                                                                            24

            Basic usage of DateTime                                                                           24

        Chapter 10: Enums                                                                                    25

          Examples                                                                                            25

            Basic usage                                                                                       25
   1   2   3   4   5   6   7   8