Skip to content

1st January 2022

Other

  • New: Flutter commnad version.

    flutter --version: See Flutter and Dart version.

  • New: Enum.

    enum Day { monday, tuesday }
    

    Get the value of an enum element:

    Day.monday.name
    
  • New: If null operator (??).

    Get a default value if object is null:

    var value;
    ...
    value = value ?? 2;
    
  • New: Flutter Provider.

    A relatively simple and efficient tool for state management in Flutter is provider.