PatapataException constructor
PatapataException({})
Implementation
PatapataException({
App? app,
this.message,
this.original,
this.fingerprint,
this.localeTitleData,
this.localeMessageData,
this.localeFixData,
this.fix,
this.logLevel,
bool overridableLocalization = true,
Level? userLogLevel,
}) : _app = app ?? (Zone.current[#patapataApp] as App?),
_userLogLevel = userLogLevel {
final tPageLocalizationKey = (overridableLocalization)
? _app
?.getPlugin<StandardAppPlugin>()
?.delegate
?.pageInstances
.lastOrNull
?.standardPageKey
.currentState
?.localizationKey
: null;
_overrideLocalizeKeyBase = tPageLocalizationKey?.isNotEmpty == true
? '$tPageLocalizationKey.$_localizeKeyBase'
: '';
}