maybeMap<TResult extends Object?> method
TResult
maybeMap<TResult extends Object?>({
- TResult appearance()?,
- TResult askQuestion()?,
- TResult business(
- SettingsSectionBusiness value
- TResult chatFolders()?,
- TResult dataAndStorage()?,
- TResult devices(
- SettingsSectionDevices value
- TResult editProfile()?,
- TResult faq(
- SettingsSectionFaq value
- TResult features(
- SettingsSectionFeatures value
- TResult inAppBrowser()?,
- TResult language(
- SettingsSectionLanguage value
- TResult myGrams(
- SettingsSectionMyGrams value
- TResult myStars(
- SettingsSectionMyStars value
- TResult notifications()?,
- TResult powerSaving()?,
- TResult privacyAndSecurity()?,
- TResult privacyPolicy()?,
- TResult qrCode(
- SettingsSectionQrCode value
- TResult search(
- SettingsSectionSearch value
- TResult sendGift(
- SettingsSectionSendGift value
- required TResult orElse(),
Implementation
TResult maybeMap<TResult extends Object?>({
TResult Function(SettingsSectionAppearance value)? appearance,
TResult Function(SettingsSectionAskQuestion value)? askQuestion,
TResult Function(SettingsSectionBusiness value)? business,
TResult Function(SettingsSectionChatFolders value)? chatFolders,
TResult Function(SettingsSectionDataAndStorage value)? dataAndStorage,
TResult Function(SettingsSectionDevices value)? devices,
TResult Function(SettingsSectionEditProfile value)? editProfile,
TResult Function(SettingsSectionFaq value)? faq,
TResult Function(SettingsSectionFeatures value)? features,
TResult Function(SettingsSectionInAppBrowser value)? inAppBrowser,
TResult Function(SettingsSectionLanguage value)? language,
TResult Function(SettingsSectionMyGrams value)? myGrams,
TResult Function(SettingsSectionMyStars value)? myStars,
TResult Function(SettingsSectionNotifications value)? notifications,
TResult Function(SettingsSectionPowerSaving value)? powerSaving,
TResult Function(SettingsSectionPremium value)? premium,
TResult Function(SettingsSectionPrivacyAndSecurity value)?
privacyAndSecurity,
TResult Function(SettingsSectionPrivacyPolicy value)? privacyPolicy,
TResult Function(SettingsSectionQrCode value)? qrCode,
TResult Function(SettingsSectionSearch value)? search,
TResult Function(SettingsSectionSendGift value)? sendGift,
required TResult Function() orElse,
}) {
switch (getConstructor()) {
case SettingsSectionAppearance.constructor:
if (appearance != null) {
return appearance.call(this as SettingsSectionAppearance);
}
break;
case SettingsSectionAskQuestion.constructor:
if (askQuestion != null) {
return askQuestion.call(this as SettingsSectionAskQuestion);
}
break;
case SettingsSectionBusiness.constructor:
if (business != null) {
return business.call(this as SettingsSectionBusiness);
}
break;
case SettingsSectionChatFolders.constructor:
if (chatFolders != null) {
return chatFolders.call(this as SettingsSectionChatFolders);
}
break;
case SettingsSectionDataAndStorage.constructor:
if (dataAndStorage != null) {
return dataAndStorage.call(this as SettingsSectionDataAndStorage);
}
break;
case SettingsSectionDevices.constructor:
if (devices != null) {
return devices.call(this as SettingsSectionDevices);
}
break;
case SettingsSectionEditProfile.constructor:
if (editProfile != null) {
return editProfile.call(this as SettingsSectionEditProfile);
}
break;
case SettingsSectionFaq.constructor:
if (faq != null) {
return faq.call(this as SettingsSectionFaq);
}
break;
case SettingsSectionFeatures.constructor:
if (features != null) {
return features.call(this as SettingsSectionFeatures);
}
break;
case SettingsSectionInAppBrowser.constructor:
if (inAppBrowser != null) {
return inAppBrowser.call(this as SettingsSectionInAppBrowser);
}
break;
case SettingsSectionLanguage.constructor:
if (language != null) {
return language.call(this as SettingsSectionLanguage);
}
break;
case SettingsSectionMyGrams.constructor:
if (myGrams != null) {
return myGrams.call(this as SettingsSectionMyGrams);
}
break;
case SettingsSectionMyStars.constructor:
if (myStars != null) {
return myStars.call(this as SettingsSectionMyStars);
}
break;
case SettingsSectionNotifications.constructor:
if (notifications != null) {
return notifications.call(this as SettingsSectionNotifications);
}
break;
case SettingsSectionPowerSaving.constructor:
if (powerSaving != null) {
return powerSaving.call(this as SettingsSectionPowerSaving);
}
break;
case SettingsSectionPremium.constructor:
if (premium != null) {
return premium.call(this as SettingsSectionPremium);
}
break;
case SettingsSectionPrivacyAndSecurity.constructor:
if (privacyAndSecurity != null) {
return privacyAndSecurity.call(
this as SettingsSectionPrivacyAndSecurity,
);
}
break;
case SettingsSectionPrivacyPolicy.constructor:
if (privacyPolicy != null) {
return privacyPolicy.call(this as SettingsSectionPrivacyPolicy);
}
break;
case SettingsSectionQrCode.constructor:
if (qrCode != null) {
return qrCode.call(this as SettingsSectionQrCode);
}
break;
case SettingsSectionSearch.constructor:
if (search != null) {
return search.call(this as SettingsSectionSearch);
}
break;
case SettingsSectionSendGift.constructor:
if (sendGift != null) {
return sendGift.call(this as SettingsSectionSendGift);
}
break;
}
return orElse.call();
}