Skip to content

Add valueAsInt and valueAsDouble to dart:html #8163

Closed
@sethladd

Description

@sethladd

See https://github.com/dart-lang/web-ui/issues/317

I'd love to bind HTML fields to Dart model objects that have been annotated with int and double.

Right now we have valueAsNumber which returns a variable annotated with num. Adding valueAsInt and valueAsDouble lets me use Web UI to bind to int's and double's.

Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-obsoleteClosed as the reported issue is no longer relevantlibrary-htmltype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions