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 characters
| class SomeClass { | |
| String id; | |
| String foo; | |
| String bar; // required | |
| String zap; // required | |
| SomeClass.fromMap(Map<String, dynamic> inputMap) { | |
| this.id = inputMap['ID']; | |
| this.foo = inputMap['Foo']; | |
| this.bar = inputMap['Bar']; |
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 characters
| class SomeClass { | |
| String foobar; | |
| void someMethod(String newValue) { | |
| if (foobar == null) { | |
| foobar = newValue; | |
| } | |
| } | |
| // OR // |
OlderNewer