Dart: Give all functions explicit types

It makes the code easier to understand and this way the static type
checker will catch bugs for us.
This commit is contained in:
Vishesh Handa
2019-06-02 15:51:43 +02:00
parent bde0097068
commit c79249cbe1
12 changed files with 39 additions and 24 deletions

View File

@ -16,7 +16,7 @@ class GitHub implements GitHost {
var _accessCode = "";
@override
void init(Function callback) {
void init(OAuthCallback callback) {
Future _handleMessages(MethodCall call) async {
if (call.method != "onURL") {
print("GitHub Unknown Call: " + call.method);