name property Null safety

String name

Implementation

String get name {
  switch (this) {
    case SupplierPartnerType.rider:
      return 'RIDER';
    case SupplierPartnerType.practitioner:
      return 'PRACTITIONER';
    case SupplierPartnerType.provider:
      return 'PROVIDER';
    case SupplierPartnerType.pharmaceutical:
      return 'PHARMACEUTICAL';
    case SupplierPartnerType.coach:
      return 'COACH';
    case SupplierPartnerType.nutrition:
      return 'NUTRITION';
    case SupplierPartnerType.consumer:
      return 'CONSUMER';
    default:
      return 'UNKNOWN';
  }
}