BaseContext class abstract

Available extensions
Annotations
  • @freezed

Constructors

BaseContext({@Default.new('') String? graphqlEndpoint, @Default.new('') String? loginByPhoneEndpoint, @Default.new('') String? uploadFileEndPoint, @Default.new('') String? pinResetEndpoint, @Default.new('') String? requestPinResetEndpoint, @Default.new('') String? respondedSecurityQuestionsEndpoint, @Default.new('') String? verifySecurityQuestionsEndpoint, @Default.new('') String? updateUserPinEndpoint, @Default.new('') String? verifyPhoneEndpoint, @Default.new('') String? createUserByPhoneEndpoint, @Default.new('') String? retryResendOtpEndpoint, @Default.new('') String? refreshTokenEndpoint, @Default.new('') String? refreshStreamTokenEndpoint, @Default.new('') String? anonymousLoginEndpoint, @Default.new('') String? userRecoveryPhoneNumbersEndpoint, @Default.new('') String? sendRecoverAccountOtpEndpoint, @Default.new('') String? setPrimaryPhoneNumberEndpoint, @Default.new('') String? sendContactVerificationOTPEndpoint, @Default.new('') String? verifyContactOTPEndpoint, @Default.new('') String? switchFlaggedFeaturesEndpoint, @Default.new('') String? pinResetServiceRequestEndpoint, @Default.new('') String? optInClientEndpoint, @Default.new('') String? listOrganisationsEndpoint, @Default.new('') String? communitiesEndpoint, @Default.new('') String? matrixMediaServer, @Default.new('') String? contentEndpoint, @Default.new('') String? passwordResetEndpoint, @Default.new('') String? setPinEndpoint, @Default.new('') String? termsAndConditionsEndpoint, @Default.new('') String? privacyPolicyEndpoint})
factory
BaseContext.fromJson(Map<String, dynamic> json)
factory

Properties

anonymousLoginEndpoint String?
no setterinherited
communitiesEndpoint String?
no setterinherited
contentEndpoint String?
no setterinherited
copyWith → $BaseContextCopyWith<BaseContext>
Create a copy of BaseContext with the given fields replaced by the non-null parameter values.
no setterinherited
createUserByPhoneEndpoint String?
no setterinherited
graphqlEndpoint String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
listOrganisationsEndpoint String?
no setterinherited
loginByPhoneEndpoint String?
no setterinherited
matrixMediaServer String?
no setterinherited
optInClientEndpoint String?
no setterinherited
passwordResetEndpoint String?
no setterinherited
pinResetEndpoint String?
no setterinherited
pinResetServiceRequestEndpoint String?
no setterinherited
privacyPolicyEndpoint String?
no setterinherited
refreshStreamTokenEndpoint String?
no setterinherited
refreshTokenEndpoint String?
no setterinherited
requestPinResetEndpoint String?
no setterinherited
respondedSecurityQuestionsEndpoint String?
no setterinherited
retryResendOtpEndpoint String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendContactVerificationOTPEndpoint String?
no setterinherited
sendRecoverAccountOtpEndpoint String?
no setterinherited
setPinEndpoint String?
no setterinherited
setPrimaryPhoneNumberEndpoint String?
no setterinherited
switchFlaggedFeaturesEndpoint String?
no setterinherited
termsAndConditionsEndpoint String?
no setterinherited
updateUserPinEndpoint String?
no setterinherited
uploadFileEndPoint String?
no setterinherited
userRecoveryPhoneNumbersEndpoint String?
no setterinherited
verifyContactOTPEndpoint String?
no setterinherited
verifyPhoneEndpoint String?
no setterinherited
verifySecurityQuestionsEndpoint String?
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_BaseContext value)) → TResult

Available on BaseContext, provided by the BaseContextPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_BaseContext value)?) → TResult?

Available on BaseContext, provided by the BaseContextPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_BaseContext value)?, {required TResult orElse()}) → TResult

Available on BaseContext, provided by the BaseContextPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? graphqlEndpoint, String? loginByPhoneEndpoint, String? uploadFileEndPoint, String? pinResetEndpoint, String? requestPinResetEndpoint, String? respondedSecurityQuestionsEndpoint, String? verifySecurityQuestionsEndpoint, String? updateUserPinEndpoint, String? verifyPhoneEndpoint, String? createUserByPhoneEndpoint, String? retryResendOtpEndpoint, String? refreshTokenEndpoint, String? refreshStreamTokenEndpoint, String? anonymousLoginEndpoint, String? userRecoveryPhoneNumbersEndpoint, String? sendRecoverAccountOtpEndpoint, String? setPrimaryPhoneNumberEndpoint, String? sendContactVerificationOTPEndpoint, String? verifyContactOTPEndpoint, String? switchFlaggedFeaturesEndpoint, String? pinResetServiceRequestEndpoint, String? optInClientEndpoint, String? listOrganisationsEndpoint, String? communitiesEndpoint, String? matrixMediaServer, String? contentEndpoint, String? passwordResetEndpoint, String? setPinEndpoint, String? termsAndConditionsEndpoint, String? privacyPolicyEndpoint)?, {required TResult orElse()}) → TResult

Available on BaseContext, provided by the BaseContextPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this BaseContext to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? graphqlEndpoint, String? loginByPhoneEndpoint, String? uploadFileEndPoint, String? pinResetEndpoint, String? requestPinResetEndpoint, String? respondedSecurityQuestionsEndpoint, String? verifySecurityQuestionsEndpoint, String? updateUserPinEndpoint, String? verifyPhoneEndpoint, String? createUserByPhoneEndpoint, String? retryResendOtpEndpoint, String? refreshTokenEndpoint, String? refreshStreamTokenEndpoint, String? anonymousLoginEndpoint, String? userRecoveryPhoneNumbersEndpoint, String? sendRecoverAccountOtpEndpoint, String? setPrimaryPhoneNumberEndpoint, String? sendContactVerificationOTPEndpoint, String? verifyContactOTPEndpoint, String? switchFlaggedFeaturesEndpoint, String? pinResetServiceRequestEndpoint, String? optInClientEndpoint, String? listOrganisationsEndpoint, String? communitiesEndpoint, String? matrixMediaServer, String? contentEndpoint, String? passwordResetEndpoint, String? setPinEndpoint, String? termsAndConditionsEndpoint, String? privacyPolicyEndpoint)) → TResult

Available on BaseContext, provided by the BaseContextPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? graphqlEndpoint, String? loginByPhoneEndpoint, String? uploadFileEndPoint, String? pinResetEndpoint, String? requestPinResetEndpoint, String? respondedSecurityQuestionsEndpoint, String? verifySecurityQuestionsEndpoint, String? updateUserPinEndpoint, String? verifyPhoneEndpoint, String? createUserByPhoneEndpoint, String? retryResendOtpEndpoint, String? refreshTokenEndpoint, String? refreshStreamTokenEndpoint, String? anonymousLoginEndpoint, String? userRecoveryPhoneNumbersEndpoint, String? sendRecoverAccountOtpEndpoint, String? setPrimaryPhoneNumberEndpoint, String? sendContactVerificationOTPEndpoint, String? verifyContactOTPEndpoint, String? switchFlaggedFeaturesEndpoint, String? pinResetServiceRequestEndpoint, String? optInClientEndpoint, String? listOrganisationsEndpoint, String? communitiesEndpoint, String? matrixMediaServer, String? contentEndpoint, String? passwordResetEndpoint, String? setPinEndpoint, String? termsAndConditionsEndpoint, String? privacyPolicyEndpoint)?) → TResult?

Available on BaseContext, provided by the BaseContextPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited