is it possible to create your own futures in Dart to return from your methods, or must you always return a built in future return from one of the dart async libraries methods?>
@Fox32 has the correct answer addition to that we need to mention Type of the Completer otherwise we get exception
Exception received is type 'Future' is not a subtype of type 'FutureOr>
so initialisation of completer would become
var completer= new Completer>();