Skip to content

Type safe forms values #825

Open
@sultanmyrza

Description

@sultanmyrza

currently FormBuilder.initialValue(formSchema)
formSchema is Map<String, dynamic>
any plans for making "form schema" type safe?

  /// An optional Map of field initialValues. Keys correspond to the field's
  /// name and value to the initialValue of the field.
  ///
  /// The initialValues set here will be ignored if the field has a local
  /// initialValue set.
  final Map<String, dynamic> initialValue; // current solution

  final T initialValue; // Maybe someday in the future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions