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.