auto_route_library icon indicating copy to clipboard operation
auto_route_library copied to clipboard

If a route argument is a nested record, build fails

Open Sevastyan opened this issue 9 months ago • 0 comments

For example, consider the following route argument:

typedef Card = ({
  String id,
  bool isActivated,
  ({
    String id,
    String name,
  })? resource,
});

Build fails with

Could not format because the source could not be parsed:

Type 'void' can't have type arguments.

So, it interprets resource record as void<String, String>.

Sevastyan avatar Nov 20 '23 18:11 Sevastyan