mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
commit
30dc33fbcd
@ -45,7 +45,7 @@ const CONSTANT_VALUE = "I CANNOT CHANGE";
|
||||
CONSTANT_VALUE = "DID I?"; //Error
|
||||
/// Final is another variable declaration that cannot be change once it has been instantiated. Commonly used in classes and functions
|
||||
/// `final` can be declared in pascalCase.
|
||||
final finalValue = "value cannot be change once instantiated";
|
||||
final finalValue = "value cannot be changed once instantiated";
|
||||
finalValue = "Seems not"; //Error
|
||||
|
||||
/// `var` is another variable declaration that is mutable and can change its value. Dart will infer types and will not change its data type
|
||||
|
Loading…
Reference in New Issue
Block a user