config method

void config({
  1. bool? enableLog,
  2. bool? defaultPopGesture,
  3. bool? defaultOpaqueRoute,
  4. Duration? defaultDurationTransition,
  5. bool? defaultGlobalState,
  6. Transition? defaultTransitionStyle,
  7. @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!));
}