Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add const constructor to TextInputFormatter #114401

Closed
@hurelhuyag

Description

@hurelhuyag

Use case

Currently, form controls are const constructible. But there is single thing preventing it to const construct. It is TextInputFormatter.

Proposal

Add const constructor to TextInputFormatter

abstract class TextInputFormatter {
  const TextInputFormatter();

  // rest of codes
}

This makes subclasses of TextInputFormatter are const constructible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: text inputEntering text in a text field or keyboard related problemsc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions