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

Use manifest class constructor for common fields #10

Open
FatulM opened this issue Sep 12, 2021 · 1 comment
Open

Use manifest class constructor for common fields #10

FatulM opened this issue Sep 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@FatulM
Copy link
Contributor

FatulM commented Sep 12, 2021

Add ability to use manifest class constructor for common fields.

@Sealed()
abstract class _ApiError {
  _ApiError({String message, String? code,});

  void internetError();

  void badRequest();

  void internalError(Object? error);
}

Complexities arise when combining constructor defined common fields and member defined ones. Also this feature should default values (static and dynamic) and overridden dynamic types.

Special thanks to @iamarnas for his recommendations.

@FatulM FatulM self-assigned this Sep 12, 2021
@FatulM FatulM added the enhancement New feature or request label Sep 12, 2021
@FatulM
Copy link
Contributor Author

FatulM commented Sep 12, 2021

@iamarnas

@FatulM FatulM removed their assignment Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant