PlatformNavigationDelegateCreationParams class
Object specifying creation parameters for creating a PlatformNavigationDelegate
.
Platform specific implementations can add additional fields by extending this class.
{@tool sample} This example demonstrates how to extend the PlatformNavigationDelegateCreationParams to provide additional platform specific parameters.
When extending PlatformNavigationDelegateCreationParams additional
parameters should always accept null
or have a default value to prevent
breaking changes.
class AndroidNavigationDelegateCreationParams extends PlatformNavigationDelegateCreationParams {
AndroidNavigationDelegateCreationParams._(
// This parameter prevents breaking changes later.
// ignore: avoid_unused_constructor_parameters
PlatformNavigationDelegateCreationParams params, {
this.filter,
}) : super();
factory AndroidNavigationDelegateCreationParams.fromPlatformNavigationDelegateCreationParams(
PlatformNavigationDelegateCreationParams params, {
String? filter,
}) {
return AndroidNavigationDelegateCreationParams._(params, filter: filter);
}
final String? filter;
}
{@end-tool}
- Annotations
Constructors
-
Used by the platform implementation to create a new
PlatformNavigationkDelegate
.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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