PlatformApp class

Inheritance

Constructors

PlatformApp({Key? key, Key? widgetKey, GlobalKey<NavigatorState>? navigatorKey, Widget? home, Map<String, WidgetBuilder>? routes, String? initialRoute, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, List<NavigatorObserver>? navigatorObservers, TransitionBuilder? builder, String? title, GenerateAppTitle? onGenerateTitle, Color? color, Locale? locale, Iterable<LocalizationsDelegate>? localizationsDelegates, LocaleListResolutionCallback? localeListResolutionCallback, LocaleResolutionCallback? localeResolutionCallback, Iterable<Locale>? supportedLocales, bool? showPerformanceOverlay, bool? checkerboardRasterCacheImages, bool? checkerboardOffscreenLayers, bool? showSemanticsDebugger, bool? debugShowCheckedModeBanner, Map<LogicalKeySet, Intent>? shortcuts, Map<Type, Action<Intent>>? actions, InitialRouteListFactory? onGenerateInitialRoutes, String? restorationScopeId, ScrollBehavior? scrollBehavior, NotificationListenerCallback<NavigationNotification>? onNavigationNotification, PlatformBuilder<MaterialAppData>? material, PlatformBuilder<CupertinoAppData>? cupertino})
const
PlatformApp.router({Key? key, RouteInformationProvider? routeInformationProvider, RouteInformationParser<Object>? routeInformationParser, RouterDelegate<Object>? routerDelegate, RouterConfig<Object>? routerConfig, BackButtonDispatcher? backButtonDispatcher, Key? widgetKey, TransitionBuilder? builder, String? title, GenerateAppTitle? onGenerateTitle, Color? color, Locale? locale, Iterable<LocalizationsDelegate>? localizationsDelegates, LocaleListResolutionCallback? localeListResolutionCallback, LocaleResolutionCallback? localeResolutionCallback, Iterable<Locale>? supportedLocales, bool? showPerformanceOverlay, bool? checkerboardRasterCacheImages, bool? checkerboardOffscreenLayers, bool? showSemanticsDebugger, bool? debugShowCheckedModeBanner, Map<LogicalKeySet, Intent>? shortcuts, Map<Type, Action<Intent>>? actions, String? restorationScopeId, ScrollBehavior? scrollBehavior, NotificationListenerCallback<NavigationNotification>? onNavigationNotification, PlatformBuilder<MaterialAppRouterData>? material, PlatformBuilder<CupertinoAppRouterData>? cupertino})
const

Properties

actions Map<Type, Action<Intent>>?
final
backButtonDispatcher BackButtonDispatcher?
A delegate that decide whether to handle the Android back button intent.
final
builder TransitionBuilder?
final
checkerboardOffscreenLayers bool?
final
checkerboardRasterCacheImages bool?
final
color Color?
final
cupertino PlatformBuilder<CupertinoAppData>?
final
cupertinoRouter PlatformBuilder<CupertinoAppRouterData>?
final
debugShowCheckedModeBanner bool?
final
hashCode int
The hash code for this object.
no setterinherited
home Widget?
final
initialRoute String?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locale Locale?
final
localeListResolutionCallback LocaleListResolutionCallback?
final
localeResolutionCallback LocaleResolutionCallback?
final
localizationsDelegates Iterable<LocalizationsDelegate>?
final
material PlatformBuilder<MaterialAppData>?
final
materialRouter PlatformBuilder<MaterialAppRouterData>?
final
final
final
onGenerateInitialRoutes InitialRouteListFactory?
final
onGenerateRoute RouteFactory?
final
onGenerateTitle GenerateAppTitle?
final
onNavigationNotification NotificationListenerCallback<NavigationNotification>?
final
onUnknownRoute RouteFactory?
final
restorationScopeId String?
final
routeInformationParser RouteInformationParser<Object>?
A delegate to parse the route information from the routeInformationProvider into a generic data type to be processed by the routerDelegate at a later stage.
final
routeInformationProvider RouteInformationProvider?
A object that provides route information through the RouteInformationProvider.value and notifies its listener when its value changes.
final
routerConfig RouterConfig<Object>?
An object to configure the underlying Router.
final
routerDelegate RouterDelegate<Object>?
A delegate that configures a widget, typically a Navigator, with parsed result from the routeInformationParser.
final
routes Map<String, WidgetBuilder>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior ScrollBehavior?
final
shortcuts Map<LogicalKeySet, Intent>?
final
showPerformanceOverlay bool?
final
showSemanticsDebugger bool?
final
supportedLocales Iterable<Locale>?
final
title String?
final
widgetKey Key?
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
createCupertinoWidget(BuildContext context) CupertinoApp
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
createMaterialWidget(BuildContext context) MaterialApp
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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