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

Value accessors #6

Description

@jaripekkala
final data = {
  'product': {
    'id': 2,
    'name': 'Foo',
  },
  'product_id': 2,
};

final form = FormGroup({
  'product_id': FormControl(data['product'], [Required()]),
});

assert(form.value != {'product_id': 2});

Use cases: autocompletes with initial value, single stored values controlled via multiple form controls (date & time fields separate however stored as datetimes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions