isConfirmPassword static method

String? isConfirmPassword({
  1. required String password,
  2. required String confrimPassword,
  3. required String errorMessage,
})

Implementation

static String? isConfirmPassword({
  required String password,
  required String confrimPassword,
  required String errorMessage,
}) {
  if (password != confrimPassword) {
    return errorMessage;
  }
  return null;
}