Skip to content

Make Element.type into an enum #106

@lukehutch

Description

@lukehutch

Right now Element.type is a string. I keep running into new element types that I haven't seen before, and I have to add another else-if block to handle the additional element type. If this was an enum rather than a string, then the Dart tooling would show me which element types I still need to implement support for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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