Skip to content

Constructor convention not enforced #51

@dgaedcke

Description

@dgaedcke

It seems you only want Member instances created by:
static Member? fromMap()

As that's the only way to set the _identity property (which is required elsewhere)

In this case, you should make the default constructor private so users don't call Member() directly and end up with an incomplete instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions