StandardErrorPageFactory<T extends StandardPage<ReportRecord>> class base

A special factory class for creating an error page that PatapataException can navigate to if an error has a PatapataException.userLogLevel of Level.SHOUT.

Inheritance

Constructors

StandardErrorPageFactory.new({required T create(ReportRecord pageData), Map<String, ReportRecord Function(RegExpMatch match, Uri uri)>? links, String linkGenerator(ReportRecord pageData)?, bool groupRoot = false, String? group = StandardErrorPageFactory.errorGroup, bool keepHistory = true, bool enableNavigationAnalytics = true, StandardPageNavigationMode navigationMode = StandardPageNavigationMode.removeAll, LocalKey pageKey(ReportRecord pageData)?, StandardPageInterface<ReportRecord, void> pageBuilder(Widget child, String? name, ReportRecord pageData, LocalKey pageKey, String restorationId, GlobalKey<StandardPageWithResult<ReportRecord, void>> standardPageKey, StandardPageWithResultFactory<StandardPageWithResult<ReportRecord, void>, ReportRecord, void> factoryObject)?, ReportRecord pageDataWhenNull()?, String? pageName()?, String restorationId(ReportRecord pageData)?})
Create a StandardErrorPageFactory

Properties

create → T Function(ReportRecord pageData)
Creates the T page that this factory manages.
finalinherited
dataType Type
The data type of this page.
no setterinherited
dataTypeIsNonNullable bool
Flag indicating that the type of page data set for this page is nullable.
no setterinherited
enableNavigationAnalytics bool
Flag indicating whether to enable analytics for navigation.
finalinherited
group String?
The group name used to manage multiple pages as part of the same group when they exist.
finalinherited
groupRoot bool
Flag indicating whether to set this page as the root group if a group name is specified.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
keepHistory bool
Flag indicating whether to stack this page as part of the history or not.
finalinherited
linkGenerator String Function(ReportRecord pageData)?
The function to create deep links for this page. The return value must match the keys (regular expressions) passed to links and their corresponding R 'pageData' destinations.
finalinherited
The method for transitioning to this page from other pages. Please refer to StandardPageNavigationMode for navigation modes.
finalinherited
pageBuilder StandardPageInterface<ReportRecord, void> Function(Widget child, String? name, ReportRecord pageData, LocalKey pageKey, String restorationId, GlobalKey<StandardPageWithResult<ReportRecord, void>> standardPageKey, StandardPageWithResultFactory<StandardPageWithResult<ReportRecord, void>, ReportRecord, void> factoryObject)?
A function for creating StandardPageInterface.
finalinherited
pageDataWhenNull ReportRecord Function()?
A function to generate a replacement value when the pageData passed during navigation is null.
finalinherited
pageName String? Function()?
The name of this page.
finalinherited
pageType Type
The page type of this page.
no setterinherited
parentPageType Type?
When using nested Navigators, specifies what the parent page Type of this child page should be.
finalinherited
restorationId String Function(ReportRecord pageData)?
A function for generating a value to pass to Page.restorationId.
finalinherited
resultType Type
The result type of this page.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

Returns the deep link generated by this page given pageData.
inherited
getPageKey(Object? pageData) LocalKey
Get the key set for this page, as configured for this page.
inherited
goWithResult(ReportRecord pageData, [StandardPageNavigationMode? navigationMode]) Future<void>
Navigate to the StandardPage of type T with the option to pass pageData during navigation. An optional navigationMode representing the mode of StandardPageNavigationMode to use during navigation can also be provided.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

errorGroup → const String