Skip to content

[gis_web] Make maybeEnum more robust. #166548

@ditman

Description

@ditman

The current implementation of the maybeEnum method throws when the needle value is unexpected, but it should return null instead. This particular plugin is "vulnerable" to this because the GIS API is somewhat in flux, and we've had other enums fail before.

This could be rewritten to be more similar to the google_adsense version, so it withstands (and maybe logs) unknown enum values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.p: google_identity_services_webA JS-interop layer for Google Identity's Sign In With Google SDKpackageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions