Flutter® For Dummies® by Barry Burd

Flutter® For Dummies® by Barry Burd

Author:Barry Burd [Burd, Barry]
Language: eng
Format: epub
Published: 2020-07-13T00:00:00+00:00


Have only one _counter declaration. Put it just before the start of the _MyHomePageState class. (See Figure 5-16.)

After making this change, the editor doesn’t display any error markers. Maybe you click the Run icon, anticipating bad news. Either the app doesn’t run, or it runs and behaves badly. But, lo and behold, the app runs correctly!

A declaration that’s not inside a class or a function is called a top-level declaration, and a top-level name can be referenced anywhere in your program. (Well, almost anywhere. There are some limits. In particular, see the later section “Names that start with an underscore.”)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.