Error In Preference Service Init
compiler message: ../hosted/pub.dartlang.org/preferences-1.1.0/lib/preference_service.dart:10:10: Error: 'Future' expects 0 type arguments.
compiler message: static Future<bool> init({String prefix = ''}) async {
compiler message: ^
compiler message: ../hosted/pub.dartlang.org/preferences-1.1.0/lib/preference_page.dart:15:27: Error: The argument type 'invalid-type' can't be assigned to the parameter type 'dart.async::Future<dynamic>'.
compiler message: Try changing the type of the parameter, or casting the argument to 'dart.async::Future<dynamic>'.
compiler message: future: PrefService.init(),
compiler message: ^
compiler message: ../hosted/pub.dartlang.org/preferences-1.1.0/lib/preference_service.dart:12:43: Error: A value of type 'dart.core::bool' can't be assigned to a variable of type 'dart.async::FutureOr<invalid-type>'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.async::FutureOr<invalid-type>'.
compiler message: if (sharedPreferences != null) return false;
compiler message: ^
compiler message: ../hosted/pub.dartlang.org/preferences-1.1.0/lib/preference_service.dart:14:12: Error: A value of type 'dart.core::bool' can't be assigned to a variable of type 'dart.async::FutureOr<invalid-type>'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.async::FutureOr<invalid-type>'.
compiler message: return true;
compiler message: ^
compiler message: ../hosted/pub.dartlang.org/preferences-1.1.0/lib/preference_service.dart:10:23: Error: Functions marked 'async' must have a return type assignable to 'Future'.
compiler message: static Future<bool> init({String prefix = ''}) async {
Edited by Nick Mowen