Skip to content

Use barrel files for features #449

@marfavi

Description

@marfavi

A barrel file is a file in a folder that exports all dart files within it.

It greatly reduces the amount of imports in files that need to refer to a feature, improving code legibility.

There's an extension that can generate these files for us.

https://marketplace.visualstudio.com/items?itemName=miquelddg.dart-barrel-file-generator

Metadata

Metadata

Assignees

Labels

code/devDX; technical debt; issue concerns code readability or qualityresearchFurther research is needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions