sidneyaguirre / dart_patterns

Introduction to Dart patterns + records + enhanced switch included in Dart 3.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dart_patterns

Dart3 Patterns

Pattern

A pattern represents a structure that one or more values can take, like a blueprint. Patterns compare against actual values determine if they -match-

Some patterns, when they match, -destructure- the matched value by pulling data out of it. Destructuring lets you unpack values from an object to assign them to local variables, or perform further matching on them.

Screenshot 2023-08-24 at 17 57 29

About

Introduction to Dart patterns + records + enhanced switch included in Dart 3.0


Languages

Language:Dart 64.5%Language:HTML 17.5%Language:Swift 16.3%Language:Kotlin 1.2%Language:Objective-C 0.4%