Flutter and Dart Cookbook by Rich Rose

Flutter and Dart Cookbook by Rich Rose

Author:Rich Rose
Language: eng
Format: mobi, epub
Publisher: O'Reilly Media, Inc.
Published: 2022-08-18T00:00:00+00:00


Discussion

In the above example, a List is defined with three elements. If you want to expand the number of elements, this can be done by using the add method. The add method will append the new element at the end of the List. Therefore in the example you would see the month’s output as ‘January’, ‘February’, ‘March’, ‘April’.

The dynamic nature of a List makes it perfect for multiple situations where data structure manipulation is required. You will see Lists used across a number of situations to handle a variety of data types.



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.