Skip to content

Extend EnumClass? #694

@cpboyd

Description

@cpboyd

Potentially related to #57 and #58.

My specific use case is that I'm using a EnumClasses to specify navigation paths within a Flutter application.

There is, however, replicated code across classes that I could alleviate if I could have an intermediate abstract class EnumRoute extends EnumClass {}

Would it be possible to have the isEnumClass check use name.startsWith('Enum') (similar to isBuiltValue)?
https://github.com/google/built_value.dart/blob/master/built_value_generator/lib/src/serializer_source_class.dart#L118-L127

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