validateSecretPhase static method
Implementation
static String? validateSecretPhase(List<String>? val, List<String> val1) {
if (val!.isEmpty) {
return 'Please arrange the secret phase';
} else if (val.join(' ').contains(val1.join(' '))) {
return 'Secret phase not in the correct order';
}
return null;
}