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
void main() { | |
// this code/map sucks | |
final foo = <String, Baz>{ | |
'SomeString': new Baz<ExampleClass>( | |
fnc: (a) => a.x | |
) | |
}; | |
final bar = <String, Baz<ExampleClass>>{ | |
'SomeString': new Baz<ExampleClass>( |
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
void main() { | |
// this code/map sucks | |
final foo = <String, Baz<Object>>{ | |
'SomeString': new Baz<ExampleClass>( | |
fnc: (a) => a.x | |
) | |
}; | |
final bar = <String, Baz<ExampleClass>>{ | |
'SomeString': new Baz<ExampleClass>( |
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
void main() { | |
// this code/map sucks | |
final foo = <String, Baz>{ | |
'SomeString': new Baz<ExampleClass>( | |
fnc: (a) => a.x | |
) | |
}; | |
final bar = <String, Baz<ExampleClass>>{ | |
'SomeString': new Baz<ExampleClass>( |
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 BazMock extends Mock implements Baz {} | |
void main() { | |
test('should set state', () { | |
final bazMock = new BazMock(); | |
final foo = new Foo(bazMock); | |
when(bazMock.walkParents).thenReturn((){ | |
print(111); |
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
typedef void CheckFolderNode(); | |
class Foo { | |
int x = 0; | |
Baz _baz; | |
Foo(this._baz); | |
void bar() { | |
_baz.walkParents(() { |