config method
void
config({
- bool? enableLog,
- bool? defaultPopGesture,
- bool? defaultOpaqueRoute,
- Duration? defaultDurationTransition,
- bool? defaultGlobalState,
- Transition? defaultTransitionStyle,
- @Deprecated('Prefer to use the defaultTransitionStyle instead of using this property. This will be removed in the next major version update for stacked.') String? defaultTransition,
Allows you to configure the default behaviour for navigation.
Implementation
void config({
bool? enableLog,
bool? defaultPopGesture,
bool? defaultOpaqueRoute,
Duration? defaultDurationTransition,
bool? defaultGlobalState,
Transition? defaultTransitionStyle,
@Deprecated(
'Prefer to use the defaultTransitionStyle instead of using this property. This will be removed in the next major version update for stacked.')
String? defaultTransition,
}) {
G.Get.config(
enableLog: enableLog,
defaultPopGesture: defaultPopGesture,
defaultOpaqueRoute: defaultOpaqueRoute,
defaultDurationTransition: defaultDurationTransition,
defaultGlobalState: defaultGlobalState,
defaultTransition: defaultTransitionStyle?.toGet ??
_getTransitionOrDefault(defaultTransition!));
}