match static method
Validates two values match (e.g. confirm password).
Implementation
static String? Function(String?) match(String other,
{String message = 'Values do not match'}) =>
(String? value) => value == other ? null : message;
Validates two values match (e.g. confirm password).
static String? Function(String?) match(String other,
{String message = 'Values do not match'}) =>
(String? value) => value == other ? null : message;