name property Null safety

String name

Implementation

String get name {
  switch (this) {
    case LoginProvider.phone:
      return 'PHONE';
    case LoginProvider.socialGoogle:
      return 'SOCIAL_GOOGLE';
    case LoginProvider.socialFacebook:
      return 'SOCIAL_FACEBOOK';
    case LoginProvider.socialApple:
      return 'SOCIAL_APPLE';
    default:
      return 'UNKNOWN';
  }
}