enum AuthException {
invalidEmail('Invalid email'),
emailAlreadyInUse('Email already in use'),
weakPassword('Password is too weak'),
wrongPassword('Wrong password');
const AuthException(this.message);
final String message;
}
//dart 2.17 only
//lower than dart 2.17 cannot compile and error
沒有留言:
發佈留言