Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using dart_mappable for private classes #167

Open
momrak opened this issue Feb 14, 2024 · 6 comments
Open

Allow using dart_mappable for private classes #167

momrak opened this issue Feb 14, 2024 · 6 comments

Comments

@momrak
Copy link

momrak commented Feb 14, 2024

I have tried to use this for a private class, but have not managed to get it working

CleanShot 2024-02-14 at 07 41 50

What is the correct syntax to make this work?

@schultek
Copy link
Owner

Sorry, private classes are not supported atm.

@momrak
Copy link
Author

momrak commented Feb 21, 2024

Aha, I see. Any plans for supporting it, or is it not on the roadmap?

@schultek
Copy link
Owner

I need to revisit the code. I know right now I'm explicitly forbidding private classes but I don't know anymore why.

@momrak
Copy link
Author

momrak commented Feb 23, 2024

Hehe, I see. That happens! Should I renamed this issue to Allow using dart_mappable for private classes and keep it open as a feature request?

@momrak momrak changed the title How to use for a private class? Allow using dart_mappable for private classes Feb 25, 2024
@momrak
Copy link
Author

momrak commented Feb 25, 2024

Title updated to reflect feature request/enhancement

@JCKodel
Copy link

JCKodel commented Sep 12, 2024

Concrete use case here:

I was trying to apply vertical slice architecture using partial dart files (part and part of). Since my entity class is not used anywhere outside its slice, it makes sense for it to be private.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants