yabs.io

Yet Another Bookmarks Service

Search

Results

[https://www.darttutorial.org/dart-tutorial/dart-future/] - - public:mzimmerm
async, dart, future, good - 4 | id:1485371 -

a) add the async keyword to the main() function. b) add the await keyword in front of the future object. Result: Once Dart encounters the await keyword, it sends all the code starting from that line to the event queue and waits for the future to complete. That’s why you see the number 2 before 3.

[https://medium.com/flutter-community/dart-what-are-mixins-3a72344011f3] - - public:mzimmerm
dart, extend, good, implement, mixin - 5 | id:959123 -

Also describes 1) a edge scenario where class is used as mixin, then it should define a factory constructor and be abstract. 2) if the same message on 2 mixins is 'move' the 'move' on the rightmost mixin is called (and no other mixin's 'move', unless the rightmost 'move' calls 'super'.

Follow Tags


Export:

JSONXMLRSS