From cf36f14fa2595320cb39b9801d2160ad92196af9 Mon Sep 17 00:00:00 2001 From: Honza Bittner Date: Sat, 19 Aug 2017 22:47:23 +0200 Subject: [PATCH] Add null-aware & factory tips, #9 --- web/dart/tips.dart | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/web/dart/tips.dart b/web/dart/tips.dart index aa0d872..e16ef9a 100644 --- a/web/dart/tips.dart +++ b/web/dart/tips.dart @@ -9,7 +9,8 @@ Future main() async { List tips = []; - const TOMUCHA = 'Tomáš Zvěřina'; + const String TOMUCHA = 'Tomáš Zvěřina'; + const String hobi = 'Honza Bittner'; tips.add(new Tip() ..name = 'Konstruktory' @@ -20,7 +21,7 @@ Future main() async { tips.add(new Tip() ..name = 'List (pole)' - ..description = 'List a pole - v Dartu jednou jsou.' + ..description = 'List a pole – v Dartu jednou jsou.' ..dartPadId = 'e1f4e71b7d75d29cc7ea9e6870b502c4' ..author = TOMUCHA ); @@ -57,9 +58,23 @@ Future main() async { ..name = 'DOM eventy a atributy' ..description = 'Přiřazování eventů a změna atributů v DOM.' ..dartPadId = 'a1d0bc7572132d99ece391a9c50e5881' - ..author = 'Honza Bittner' + ..author = hobi ); - + + tips.add(new Tip() + ..name = 'Null-aware operátory' + ..description = 'Operátory pro ošetření null hodnot.' + ..dartPadId = '4a62d9770437e596e9d650e84ade233b' + ..author = hobi + ); + + tips.add(new Tip() + ..name = 'Factory pattern' + ..description = 'Klíčové slov factory a jeho možnosti.' + ..dartPadId = '115f7a5909773ef6acaa5b7eef36b00a' + ..author = hobi + ); + var benevolentValidator = new BenevolentNodeValidator(); HtmlElement gallery = querySelector('#tips');