Skip to content

DART: wrong filename used when importing api file #4117

@ircecho

Description

@ircecho

The dart generator creates api files with underscored names, but uses non-underscored names to import them which leads to problems if the file names multi-word.

JSON example: https://gist.github.com/ircecho/32f4836c38f9a316dd39630d1b9b2833

Here the file name generated is (from here):

.../lib/api/two_words_api.dart

The filename used to import the file is (from here):

part 'api/twoWords_api.dart';

two_words_api.dart is the correct filename and should be used in both instances.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions