Skip to content

Future<dynamic> can't be returned #15

@sslaia

Description

@sslaia

Hi I'm doing the excercise on chapter 7 (Unfortunately my ebook doesn't show the page no) and I get the following error in main.dart file on line 41: return completer.future (underlined red):

A value of type 'Future<dynamic>' can't be returned from the method 'getNumber' because it has a return type of 'Future<int>'.

How to turn the completer into type future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions