Last active
May 9, 2017 21:02
-
-
Save zidenis/d04c2060ae1a405cebd105259c49cab7 to your computer and use it in GitHub Desktop.
Revisions
-
zidenis revised this gist
May 9, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ void main() { String s = "Dart"; print(s is String); // true print(s.runtimeType); // String -
zidenis revised this gist
May 9, 2017 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ void main() { String s = "Dart"; print(s is String); // true print(s.runtimeType); // String Dart d = new Dart(); NotDart nd = new NotDart(); print(d is Dart); // true print(nd is Dart); // false print(nd is NotDart); // true print(nd.runtimeType); // Dart print(d.runtimeType == nd.runtimeType); // true } -
zidenis revised this gist
May 9, 2017 . 1 changed file with 13 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,19 @@ void main() { String s = "Dart"; print(s is String); // true print(s.runtimeType); // String Dart d = new Dart(); NotDart nd = new NotDart(); print(d is Dart); // true print(nd is Dart); // false print(nd is NotDart); // true print(nd.runtimeType); // Dart print(d.runtimeType == nd.runtimeType); // true } class Dart {} class NotDart { Type get runtimeType => Dart; } -
zidenis revised this gist
May 9, 2017 . 1 changed file with 6 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,14 @@ void main() { String s = "Dart"; print(s is String); // true print(s.runtimeType); // String NotDart d = new NotDart(); print(d is Dart); // false print(d is NotDart); // true print(d.runtimeType); // NotDart } class Dart {} class NotDart { Type get runtimeType => NotDart; } -
zidenis created this gist
May 9, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ void main() { String s = "Dart"; print(s is String); // true print(s.runtimeType); // String NotDart d = new NotDart(); print(d is Dart); // false print(d is NotDart); // true print(d.runtimeType); // NotDart } class Dart {} class NotDart { Type get runtimeType => NotDart; }