defaultMessage property

String get defaultMessage

The default message (or localization key) shown when the rule fails and no inline error or registered translator is provided.

Built-in rules override this. The default delegates to toString so that custom rules which only override toString() keep working unchanged.

Implementation

String get defaultMessage => toString();