diff --git a/README.md b/README.md index fe7e341..b5c0f6e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,9 @@ We can type `stless` and `stful` and we get Autocomplete Suggestion to generate Stateless Flutter Widget or Stateful Flutter Widget Respectively. -![statful](assets/01stlesstful.gif) + + + ## #Day2 `If Null` Operator (`??`) @@ -16,7 +18,9 @@ It also has shorthand assignment when it's null. `abc??=5 //assigns 5 to abc if it's null` -![null](assets/02ifnull.png) + + + ## #Day3 Inner Function @@ -24,7 +28,8 @@ We can define a function inside another function. This is to encapsulate the inner function from everything else outside the outer function. -![functions](assets/03functions.png) + + ## #Day4 ..Cascade..Chaining..Fluent API @@ -32,17 +37,22 @@ We can chain method/member calls without returning `this` from **method(), gette try in [Dartpad](https://dartpad.dartlang.org/290e17306b745ed83b9242653ca55041) -![cascade](assets/04cascadebefore.png) + + Can be replaced with -![cascadeafter](assets/04cascadeafter.png) + + + ## #Day5 Dart `data class` Dart does not support data class by default, but with plugins, we can simply generate data class (`copyWith()`,`fromMap()`, `toMap()`, `Named Constructor`, `toString()`,`hashCode()` & `equals()` methods implemented by the tool). -### `🚨❗️Caution❗️🚨` : **Your cursor should be inside the class that you want to generate data class.** +### `🚨❗️Caution❗️🚨` + +**Your cursor should be inside the class that you want to generate data class.** ![dataclass](assets/05dataclass.gif)