name property

  1. @override
String name
override

Name of the rule. You can use this atribute to show the name of the rule to the user, for example.

Implementation

@override
String get name =>
    _customText
        ?.replaceAll('{1}', _min.toString())
        .replaceAll('{2}', _max.toString()) ??
    'Min $_min and Max $_max characters';