Рет қаралды 3,936
A look at Enums in Dart and Flutter. Enums (short for Enumerations) are a set of related constants. In this video we will talk all about enums - why you might choose to use enums over just strings or constants alone for example, as well as how to use them with a Switch Case statement and a look at Enhanced Enums.
00:00 Intro and Explanation
00:47 Example with Strings
01:52 Example with Constants
02:50 Example with Enums
03:14 Enum with Switch Case Statement
p03:52 Enhanced Enums
Source Code and Transcript:
learnflutterwithme.com/enums
#flutter #learnflutter
Instagram:
learnflutterwithme
Twitter:
flutterwithme
Stuff I use for this channel (Affiliate Links)
SanDisk 1TB SSD amzn.to/3j1U8py
Elgato Cam Link 4K amzn.to/37EyqBK
Logitech G600 Mouse amzn.to/36DYFYz
Logitech G Pro Keyboard amzn.to/3saco38
Macbook Pro M1 13" amzn.to/36GzbKc
Neewer Mic Arm amzn.to/3z7RvIm
Davinci Resolve amzn.to/3erEb9I
Adobe Photoshop Elements amzn.to/3BkPKth