79416869

Date: 2025-02-06 05:35:49
Score: 2.5
Natty:
Report link

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

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ansh Mehta