Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

This library need a computed rule #42

@hboran

Description

@hboran

like this,

ComputedValidationRule("Password is not matching.", (text) {
   return pwdController.text ==pwdAgainController.text;
 },
)
class ComputedValidationRule extends TextValidationRule {

  bool Function(String text) computed;


  ComputedValidationRule(String? error, this.computed) : super(error);

  @override
  bool isValid(String input) => computed(input);
  
  @override
  String toString() => 'computedValidationRule';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions