id property

String get id

Returns the identifier of this provider.

The provider id is typically the domain of the provider.

Implementation

String get id => when(
      google: (_) => 'google.com',
      facebook: (_) => 'facebook.com',
      twitter: (_, __) => 'twitter.com',
      custom: (providerId, _) => providerId,
    );