Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Simply annotating a property with @NgAttr('foo') causes the setter to be called with null #981

Closed
@codelogic

Description

@codelogic
@NgAttr('a-property')
  set aProperty(bool value) {
    if(value == null) throw "THIS SHOULD NOT HAPPEN";
  }
  bool get aProperty => false;

This is problematic when you want to have a default value for a property, but still want it to be settable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions