mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-19 02:01:07 +08:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user