Future<List> fetchMatches() async { }
All you have to do is to make it nullable
Future<List>? fetchMatches() async { }
Now from the part where you call the function make sure to add "?" as it might return null but the part of the problem you described is solved