Future<List> getParsers() async { List parsers = []; String response = await _get("$_myServerPath$_urlGetParsers"); if (response.isNotEmpty) { parsers = jsonDecode(response) as List; } return parsers; }
The method getParsers is asynchronous and returns a Future<List> in which the list contains the parsers.