Created
June 7, 2018 20:09
-
-
Save ianloic/8ef9fd97142b5f5a888c7f47f61c9837 to your computer and use it in GitHub Desktop.
This file contains 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
import 'dart:async'; | |
import 'other.dart' show Error; | |
abstract class Wlan { | |
Future<Error> method(); | |
} | |
class WlanFuturize { | |
final Wlan _inner; | |
WlanFuturize(this._inner); | |
void method(void callback(Error error)) => | |
_inner.method().then((Error _response) => callback(_response)); | |
} |
This file contains 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 Error {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment